diff --git a/src/Platform.cpp b/src/Platform.cpp index eff6b89..0106175 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -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));