Fic initial milliseconds

This commit is contained in:
Theo Arends 2020-12-17 16:41:04 +01:00
parent 0a7d441e65
commit f243a01adf
2 changed files with 6 additions and 0 deletions

View File

@ -482,3 +482,7 @@ void RtcInit(void) {
BreakTime(Rtc.utc_time, RtcTime);
TickerRtc.attach(1, RtcSecond);
}
void RtcPreInit(void) {
Rtc.millis = millis();
}

View File

@ -191,6 +191,8 @@ void setup(void) {
#endif
#endif
RtcPreInit();
memset(&TasmotaGlobal, 0, sizeof(TasmotaGlobal));
TasmotaGlobal.baudrate = APP_BAUDRATE;
TasmotaGlobal.seriallog_timer = SERIALLOG_TIMER;