mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 10:16:30 +00:00
Fix quick restarts future time
This commit is contained in:
parent
153068882c
commit
f10c7f06bf
@ -489,7 +489,7 @@ void RtcInit(void) {
|
|||||||
|
|
||||||
if (Settings->cfg_timestamp > START_VALID_TIME) {
|
if (Settings->cfg_timestamp > START_VALID_TIME) {
|
||||||
// Fix file timestamp while utctime is not synced
|
// Fix file timestamp while utctime is not synced
|
||||||
uint32_t local_time = Settings->cfg_timestamp +2;
|
uint32_t local_time = Settings->cfg_timestamp +1;
|
||||||
RtcGetDaylightSavingTimes(local_time);
|
RtcGetDaylightSavingTimes(local_time);
|
||||||
local_time += RtcTimeZoneOffset(local_time);
|
local_time += RtcTimeZoneOffset(local_time);
|
||||||
RtcSetTimeOfDay(local_time);
|
RtcSetTimeOfDay(local_time);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user