summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavePutz <dwputz@gmail.com>2020-05-11 11:31:18 -0500
committerGitHub <noreply@github.com>2020-05-11 11:31:18 -0500
commit2ddfab315ca8709a5a18aa8411abdc899b71b44f (patch)
tree59fea454eeb7347c3519403d71ec301cd59442fa
parent581c9cee0821f9586be4e4e30c31d5f569d8dede (diff)
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.
-rw-r--r--ports/atmel-samd/supervisor/port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c
index b3903bb86..f232572e4 100644
--- a/ports/atmel-samd/supervisor/port.c
+++ b/ports/atmel-samd/supervisor/port.c
@@ -174,6 +174,7 @@ static void rtc_init(void) {
#endif
NVIC_ClearPendingIRQ(RTC_IRQn);
NVIC_EnableIRQ(RTC_IRQn);
+ rtc_reset();
}
safe_mode_t port_init(void) {