Merge pull request #1551 from mherweg/master
minor bugfix for https://github.com/Aircoookie/WLED/issues/1525
This commit is contained in:
commit
af48dcd884
@ -311,11 +311,11 @@ void deserializeConfig() {
|
|||||||
CJSON(DMXStart, dmx[F("start")]);
|
CJSON(DMXStart, dmx[F("start")]);
|
||||||
CJSON(DMXStartLED,dmx[F("start-led")]);
|
CJSON(DMXStartLED,dmx[F("start-led")]);
|
||||||
|
|
||||||
JsonArray dmx_fixmap = dmx.createNestedArray("fixmap");
|
JsonArray dmx_fixmap = dmx[F("fixmap")];
|
||||||
it = 0;
|
it = 0;
|
||||||
for (int i : dmx_fixmap) {
|
for (int i : dmx_fixmap) {
|
||||||
if (it > 14) break;
|
if (it > 14) break;
|
||||||
DMXFixtureMap[i] = i;
|
CJSON(DMXFixtureMap[i],dmx_fixmap[i]);
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -691,4 +691,4 @@ void serializeConfigSec() {
|
|||||||
File f = WLED_FS.open("/wsec.json", "w");
|
File f = WLED_FS.open("/wsec.json", "w");
|
||||||
if (f) serializeJson(doc, f);
|
if (f) serializeJson(doc, f);
|
||||||
f.close();
|
f.close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user