summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-05-11 15:30:32 -0700
committerGitHub <noreply@github.com>2020-05-11 15:30:32 -0700
commit801d9655e5f69fd3ab8926a04396c7d5e28477e2 (patch)
tree9c0390132618a260a84754dd7dfb575a61144fb8
parent6cfd73f4809d8c02a0c378cf9bac0ff2a36fb2e8 (diff)
parent407938bf3a7d194a3ac4e0888037ca7025185c2f (diff)
Merge pull request #2881 from DavePutz/Issue2872
Added call to rtc_reset() to fix Issue #2872
-rw-r--r--ports/atmel-samd/supervisor/port.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c
index b3903bb86..04e2c9191 100644
--- a/ports/atmel-samd/supervisor/port.c
+++ b/ports/atmel-samd/supervisor/port.c
@@ -174,6 +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) {