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.
This commit is contained in:
DavePutz 2020-05-11 11:31:18 -05:00 committed by GitHub
parent 581c9cee08
commit 2ddfab315c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {