diff --git a/_codeql_detected_source_root b/_codeql_detected_source_root new file mode 120000 index 00000000..945c9b46 --- /dev/null +++ b/_codeql_detected_source_root @@ -0,0 +1 @@ +. \ No newline at end of file diff --git a/wled00/json.cpp b/wled00/json.cpp index bbb8c0c7..7404a202 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -847,7 +847,7 @@ void serializeInfo(JsonObject root) #if defined(BOARD_HAS_PSRAM) root[F("psram")] = ESP.getFreePsram(); // Free PSRAM in bytes (backward compatibility) #endif - root[F("psramSize")] = ESP.getPsramSize() / (1024 * 1024); // Total PSRAM size in MB + root[F("psramSize")] = ESP.getPsramSize() / (1024UL * 1024UL); // Total PSRAM size in MB } #endif root[F("uptime")] = millis()/1000 + rolloverMillis*4294967;