From 1bb4b0156f52913919fdc29e100cbcdcf09e19b2 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 14 Feb 2023 20:25:26 +0100 Subject: [PATCH] Bugfix --- wled00/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index cc77ea45..3e5f07d7 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -648,7 +648,7 @@ void serializeInfo(JsonObject root) JsonObject ledmaps0 = ledmaps.createNestedObject(); ledmaps0["id"] = i; #ifndef ESP8266 - if (ledmapNames[i]) ledmaps0["n"] = ledmapNames[i]; + if (i && ledmapNames[i-1]) ledmaps0["n"] = ledmapNames[i-1]; #endif } }