mirror of https://github.com/arendst/Tasmota.git
Update support_rtc.ino
This commit is contained in:
parent
08033444c5
commit
c494c89a1a
|
@ -455,16 +455,13 @@ void RtcSecond(void)
|
|||
Rtc.midnight_now = true;
|
||||
}
|
||||
|
||||
//#ifdef ESP32
|
||||
if (mutex) { // Time is just synced and is valid
|
||||
// Sync RTOS time to be used by SD Card time stamps
|
||||
// Sync Core/RTOS time to be used by file system time stamps
|
||||
struct timeval tv;
|
||||
tv.tv_sec = Rtc.local_time;
|
||||
tv.tv_usec = 0;
|
||||
settimeofday(&tv, nullptr);
|
||||
}
|
||||
//#endif // ESP32
|
||||
|
||||
}
|
||||
|
||||
RtcTime.year += 1970;
|
||||
|
|
Loading…
Reference in New Issue