From c315c04b9a34c01dcb512f43b631b21fe4ba6677 Mon Sep 17 00:00:00 2001 From: mherweg Date: Mon, 21 Dec 2020 21:04:21 +0100 Subject: [PATCH] minor bugfix for https://github.com/Aircoookie/WLED/issues/1525 --- wled00/cfg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 5087c72..4bacb9a 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -311,11 +311,11 @@ void deserializeConfig() { CJSON(DMXStart, dmx[F("start")]); CJSON(DMXStartLED,dmx[F("start-led")]); - JsonArray dmx_fixmap = dmx.createNestedArray("fixmap"); + JsonArray dmx_fixmap = dmx[F("fixmap")]; it = 0; for (int i : dmx_fixmap) { if (it > 14) break; - DMXFixtureMap[i] = i; + CJSON(DMXFixtureMap[i],dmx_fixmap[i]); it++; } #endif @@ -691,4 +691,4 @@ void serializeConfigSec() { File f = WLED_FS.open("/wsec.json", "w"); if (f) serializeJson(doc, f); f.close(); -} \ No newline at end of file +}