Skip to content

Commit 9f7c26c

Browse files
committed
nrf: port: call common_hal_rtc_init() during init
Call the new function to set the RTC, or reset it if the offset is not valid. Signed-off-by: Sean Cross <[email protected]>
1 parent 83680c4 commit 9f7c26c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/nrf/supervisor/port.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ safe_mode_t port_init(void) {
120120
// Configure millisecond timer initialization.
121121
tick_init();
122122

123+
#if CIRCUITPY_RTC
124+
common_hal_rtc_init();
125+
#endif
126+
123127
#if CIRCUITPY_ANALOGIO
124128
analogin_init();
125129
#endif

0 commit comments

Comments
 (0)