Skip to content

Commit 2ddfab3

Browse files
authored
Added call to rtc_reset() in rtc_init()
Fix for issue #2872. The rtc_time_source had not been initialized; causing a time.time() call to fail.
1 parent 581c9ce commit 2ddfab3

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ static void rtc_init(void) {
174174
#endif
175175
NVIC_ClearPendingIRQ(RTC_IRQn);
176176
NVIC_EnableIRQ(RTC_IRQn);
177+
rtc_reset();
177178
}
178179

179180
safe_mode_t port_init(void) {

0 commit comments

Comments
 (0)