aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c
index 6d78c32df..38d46177e 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.c
+++ b/os/hal/platforms/STM32F4xx/hal_lld.c
@@ -96,7 +96,7 @@ void stm32_clock_init(void) {
/* PWR initialization.*/
PWR->CR = STM32_VOS;
- while (PWR->CSR & PWR_CSR_VOSRDY)
+ while ((PWR->CSR & PWR_CSR_VOSRDY) == 0)
; /* Waits until power regulator is stable. */
/* Initial clocks setup and wait for HSI stabilization, the MSI clock is