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:
@@ -1 +0,0 @@
|
||||
.
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user