From 432a311007099cb4e4fa9c9772521214e2583583 Mon Sep 17 00:00:00 2001 From: Artyom Styazhkin Date: Wed, 27 Apr 2022 18:31:38 +0300 Subject: [PATCH] Update stm32f3xx_ll_rtc.c Fixed wrong RTC RS flag status waiting. --- Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {