Upgrade reporting: add PSRAM size (MM specific)

This commit is contained in:
Frank
2026-03-10 15:25:14 +01:00
parent d90549f07a
commit ec0078c4df

View File

@@ -3853,7 +3853,7 @@ function reportUpgradeEvent(info, oldVersion, alwaysReport) {
};
// Add optional fields if available
if (infoData.psrSz !== undefined) upgradeData.psramSize = infoData.psrSz; // Total PSRAM size in MB; can be 0
if (infoData.tpsram !== undefined) upgradeData.psramSize = Math.round(infoData.tpsram / (1024 * 1024)); // convert bytes to MB - tpsram is MM specific
// Note: partitionSizes not currently available in /json/info endpoint
@@ -3922,4 +3922,4 @@ _C.addEventListener('touchstart', lock, false);
_C.addEventListener('mouseout', move, false);
_C.addEventListener('mouseup', move, false);
_C.addEventListener('touchend', move, false);
_C.addEventListener('touchend', move, false);