title: If statement does not work inside infinite loop stm32
body: <p>I am working with a STM32F030R8T6 and the HAL libraries. I use the STM32CubeMX for all the initialization code.</p>
  
  <p>When I use a "if" statement inside the infinite loop it does not work.
  Eg.</p>
  
  <pre><code>while (1) {
      if ((Seconds - oldSec) &gt;= 10) {
          printf("Entramos 10sec\r\n");
          oldSec = Seconds;
      }
  }
  </code></pre>
  
  <p>but if a use a HAL_Delay() function it works eg.</p>
  
  <pre><code>while (1) {
      HAL_Delay(1);
      if ((Seconds - oldSec) &gt;= 10) {
          printf("Entramos 10sec\r\n");
          oldSec = Seconds;
      }
  }
  </code></pre>
  
  <p>I do not know, what is the problem?</p>
  
  <p>I use the arm-gcc compiler with makefile.</p>