fix: start web stats capture from boot on >=4MB PSRAM boards

This commit is contained in:
Jared Dohrman
2026-04-17 14:42:51 +10:00
parent 29aa60ea2f
commit 05fcffc838
4 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -1684,7 +1684,7 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
function sparkStrokeColor(key, points) {
if (key === "packets") return "#d97706";
if (key === "signal") return "#3b82f6";
if (key === "noise_floor") return "#ef4444";
if (key === "noise_floor") return "#94a3b8";
if (key === "memory") {
const values = Array.isArray(points) ? points.map((item) => item && item[1]).filter((value) => Number.isFinite(value)) : [];
const current = values.length ? values[values.length - 1] : NaN;