Update stm32f3xx_ll_rtc.c

Fixed wrong RTC RS flag status waiting.
This commit is contained in:
Artyom Styazhkin 2022-04-27 18:31:38 +03:00 committed by Ali LABBENE
parent e35b3d4d4b
commit 432a311007
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{