Fix filetime

This commit is contained in:
Theo Arends 2021-01-12 15:03:06 +01:00
parent 15598d71a9
commit 08033444c5
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ void RtcSecond(void)
Rtc.midnight_now = true; Rtc.midnight_now = true;
} }
#ifdef ESP32 //#ifdef ESP32
if (mutex) { // Time is just synced and is valid if (mutex) { // Time is just synced and is valid
// Sync RTOS time to be used by SD Card time stamps // Sync RTOS time to be used by SD Card time stamps
struct timeval tv; struct timeval tv;
@ -463,7 +463,7 @@ void RtcSecond(void)
tv.tv_usec = 0; tv.tv_usec = 0;
settimeofday(&tv, nullptr); settimeofday(&tv, nullptr);
} }
#endif // ESP32 //#endif // ESP32
} }