platform: fix static check fix
This commit is contained in:
parent
f9432d89bf
commit
217a7024b9
@ -181,7 +181,7 @@ Platform::getLocalTime(struct tm* timedata)
|
||||
return false;
|
||||
#elif defined(BOARD_ESP32)
|
||||
time_t rawtime;
|
||||
memset(&rawtime, sizeof(rawtime), 0);
|
||||
memset(&rawtime, 0, sizeof(rawtime));
|
||||
time(&rawtime);
|
||||
(*timedata) = (*localtime(&rawtime));
|
||||
return (timedata->tm_year > (2016-1990));
|
||||
|
Loading…
Reference in New Issue
Block a user