Skip to content

Commit 407938b

Browse files
authored
Added a check for platforms supporting RTC before calling rtc_reset()
Added an #if CIRCUITPY_RTC check for platforms supporting RTC
1 parent 2ddfab3 commit 407938b

File tree

1 file changed

+3
-0
lines changed
  • ports/atmel-samd/supervisor

1 file changed

+3
-0
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ static void rtc_init(void) {
174174
#endif
175175
NVIC_ClearPendingIRQ(RTC_IRQn);
176176
NVIC_EnableIRQ(RTC_IRQn);
177+
#if CIRCUITPY_RTC
177178
rtc_reset();
179+
#endif
180+
178181
}
179182

180183
safe_mode_t port_init(void) {

0 commit comments

Comments
 (0)