Update stm32f3xx_ll_rtc.c
Fixed wrong RTC RS flag status waiting.
This commit is contained in:
parent
e35b3d4d4b
commit
432a311007
|
@ -808,7 +808,7 @@ ErrorStatus LL_RTC_WaitForSynchro(RTC_TypeDef *RTCx)
|
||||||
|
|
||||||
/* Wait the registers to be synchronised */
|
/* Wait the registers to be synchronised */
|
||||||
tmp = LL_RTC_IsActiveFlag_RS(RTCx);
|
tmp = LL_RTC_IsActiveFlag_RS(RTCx);
|
||||||
while ((timeout != 0U) && (tmp != 0U))
|
while ((timeout != 0U) && (tmp != 1U))
|
||||||
{
|
{
|
||||||
if (LL_SYSTICK_IsActiveCounterFlag() == 1U)
|
if (LL_SYSTICK_IsActiveCounterFlag() == 1U)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue