From 217a7024b9b61bab0c60d35e4f52bb1dc79ce567 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Fri, 3 Mar 2023 18:46:23 +0100 Subject: [PATCH] platform: fix static check fix --- src/Platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));