Skip to content

Commit 6df64d0

Browse files
authored
Fix a bug which prevents DMX channel mappings from loading correctly. (wled#1525) (wled#2328)
1 parent 83753a5 commit 6df64d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wled00/cfg.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,9 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
396396
CJSON(DMXStartLED,dmx[F("start-led")]);
397397

398398
JsonArray dmx_fixmap = dmx[F("fixmap")];
399-
it = 0;
400-
for (int i : dmx_fixmap) {
401-
if (it > 14) break;
399+
for (int i = 0; i < dmx_fixmap.size(); i++) {
400+
if (i > 14) break;
402401
CJSON(DMXFixtureMap[i],dmx_fixmap[i]);
403-
it++;
404402
}
405403
#endif
406404

0 commit comments

Comments
 (0)