Merge pull request #2881 from DavePutz/Issue2872

Added call to rtc_reset() to fix Issue #2872
This commit is contained in:
Scott Shawcroft 2020-05-11 15:30:32 -07:00 committed by GitHub
commit 801d9655e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,10 @@ static void rtc_init(void) {
#endif #endif
NVIC_ClearPendingIRQ(RTC_IRQn); NVIC_ClearPendingIRQ(RTC_IRQn);
NVIC_EnableIRQ(RTC_IRQn); NVIC_EnableIRQ(RTC_IRQn);
#if CIRCUITPY_RTC
rtc_reset();
#endif
} }
safe_mode_t port_init(void) { safe_mode_t port_init(void) {