From 1fee9d4c29e1239772b9f168dc60b8f364b08c7a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Dec 2025 19:24:15 +0000 Subject: [PATCH] Rename hasPSRAM to psramPresent - Renamed hasPSRAM field to psramPresent in /info endpoint (json.cpp) - Updated usage report to use psramPresent field (index.js) - Removed problematic _codeql_detected_source_root symlink Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com> --- _codeql_detected_source_root | 1 - wled00/data/index.js | 2 +- wled00/json.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 120000 _codeql_detected_source_root diff --git a/_codeql_detected_source_root b/_codeql_detected_source_root deleted file mode 120000 index 945c9b46..00000000 --- a/_codeql_detected_source_root +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file diff --git a/wled00/data/index.js b/wled00/data/index.js index 76372859..168a5e2a 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -3443,7 +3443,7 @@ function reportUpgradeEvent(info, oldVersion) { }; // Add optional fields if available - if (infoData.hasPSRAM !== undefined) upgradeData.hasPSRAM = infoData.hasPSRAM; // Whether device has PSRAM + if (infoData.psramPresent !== undefined) upgradeData.psramPresent = infoData.psramPresent; // Whether device has PSRAM if (infoData.psramSize !== undefined) upgradeData.psramSize = infoData.psramSize; // Total PSRAM size in MB // Note: partitionSizes not currently available in /json/info endpoint diff --git a/wled00/json.cpp b/wled00/json.cpp index 7404a202..f2308013 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -842,7 +842,7 @@ void serializeInfo(JsonObject root) #ifdef ARDUINO_ARCH_ESP32 // Report PSRAM information bool hasPsram = psramFound(); - root[F("hasPSRAM")] = hasPsram; + root[F("psramPresent")] = hasPsram; if (hasPsram) { #if defined(BOARD_HAS_PSRAM) root[F("psram")] = ESP.getFreePsram(); // Free PSRAM in bytes (backward compatibility)