Skip to content

Commit

Permalink
https://github.com/rusefi/rusefi/issues/475
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefi committed Aug 26, 2017
1 parent 2d64b37 commit d822849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ RTCDriver RTCD1;
* @notapi
*/
static void rtc_enter_init(void) {

int counter = 0;
RTCD1.rtc->ISR |= RTC_ISR_INIT;
while ((RTCD1.rtc->ISR & RTC_ISR_INITF) == 0)
while ((RTCD1.rtc->ISR & RTC_ISR_INITF) == 0 && ++counter <LSE_TIMEOUT)
;
}

Expand Down

0 comments on commit d822849

Please sign in to comment.