Update support_rtc.ino

This commit is contained in:
Theo Arends 2021-01-12 15:13:42 +01:00
parent 08033444c5
commit c494c89a1a
1 changed files with 1 additions and 4 deletions

View File

@ -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;