Added a check for platforms supporting RTC before calling rtc_reset()
Added an #if CIRCUITPY_RTC check for platforms supporting RTC
This commit is contained in:
parent
2ddfab315c
commit
407938bf3a
@ -174,7 +174,10 @@ static void rtc_init(void) {
|
||||
#endif
|
||||
NVIC_ClearPendingIRQ(RTC_IRQn);
|
||||
NVIC_EnableIRQ(RTC_IRQn);
|
||||
#if CIRCUITPY_RTC
|
||||
rtc_reset();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
safe_mode_t port_init(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user