From a9670435cf2b2ab6a13a1b864162db435722470c Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 28 Nov 2025 22:59:54 +0100 Subject: [PATCH] update message: report total PSRAM, instead of unused PSRAM space --- wled00/data/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index 29aa4a99..52938892 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -3816,7 +3816,11 @@ function reportUpgradeEvent(oldVersion, newVersion) { product: infoData.product, // Product name (always present) flashSize: infoData.flash // Flash size (always present) }; - + // Add optional fields if available + if (infoData.tpram !== undefined) upgradeData.psramSize = Math.round(infoData.tpram / (1024 * 1024)); // convert bytes to MB - tpram is MM specific + // Note: partitionSizes not currently available in /json/info endpoint + // it is availeable in WLEDMM => infoData.t = total FS size in bytes + // Make AJAX call to postUpgradeEvent API return fetch('https://usage.wled.me/api/usage/upgrade', { method: 'POST',