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>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-08 19:24:15 +00:00
parent b4d3a279e3
commit 1fee9d4c29
3 changed files with 2 additions and 3 deletions

View File

@@ -1 +0,0 @@
.

View File

@@ -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

View File

@@ -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)