platform: fix static check fix

This commit is contained in:
Torrie Fischer 2023-03-03 18:46:23 +01:00
parent f9432d89bf
commit 217a7024b9

View File

@ -181,7 +181,7 @@ Platform::getLocalTime(struct tm* timedata)
return false; return false;
#elif defined(BOARD_ESP32) #elif defined(BOARD_ESP32)
time_t rawtime; time_t rawtime;
memset(&rawtime, sizeof(rawtime), 0); memset(&rawtime, 0, sizeof(rawtime));
time(&rawtime); time(&rawtime);
(*timedata) = (*localtime(&rawtime)); (*timedata) = (*localtime(&rawtime));
return (timedata->tm_year > (2016-1990)); return (timedata->tm_year > (2016-1990));