mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Fic initial milliseconds
This commit is contained in:
parent
0a7d441e65
commit
f243a01adf
@ -482,3 +482,7 @@ void RtcInit(void) {
|
|||||||
BreakTime(Rtc.utc_time, RtcTime);
|
BreakTime(Rtc.utc_time, RtcTime);
|
||||||
TickerRtc.attach(1, RtcSecond);
|
TickerRtc.attach(1, RtcSecond);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RtcPreInit(void) {
|
||||||
|
Rtc.millis = millis();
|
||||||
|
}
|
||||||
|
@ -191,6 +191,8 @@ void setup(void) {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
RtcPreInit();
|
||||||
|
|
||||||
memset(&TasmotaGlobal, 0, sizeof(TasmotaGlobal));
|
memset(&TasmotaGlobal, 0, sizeof(TasmotaGlobal));
|
||||||
TasmotaGlobal.baudrate = APP_BAUDRATE;
|
TasmotaGlobal.baudrate = APP_BAUDRATE;
|
||||||
TasmotaGlobal.seriallog_timer = SERIALLOG_TIMER;
|
TasmotaGlobal.seriallog_timer = SERIALLOG_TIMER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user