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:
DavePutz 2020-05-11 12:03:44 -05:00 committed by GitHub
parent 2ddfab315c
commit 407938bf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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