diff --git a/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_rtc.c b/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_rtc.c index 6fee48bd..3b54b81b 100644 --- a/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_rtc.c +++ b/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_rtc.c @@ -808,7 +808,7 @@ ErrorStatus LL_RTC_WaitForSynchro(RTC_TypeDef *RTCx) /* Wait the registers to be synchronised */ tmp = LL_RTC_IsActiveFlag_RS(RTCx); - while ((timeout != 0U) && (tmp != 0U)) + while ((timeout != 0U) && (tmp != 1U)) { if (LL_SYSTICK_IsActiveCounterFlag() == 1U) {