Fix a bug which prevents DMX channel mappings from loading correctly. (#1525) (#2328)

This commit is contained in:
Jeff Cooper 2021-11-09 18:29:04 -05:00 committed by GitHub
parent 83753a5f81
commit 6df64d0d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,11 +396,9 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
CJSON(DMXStartLED,dmx[F("start-led")]);
JsonArray dmx_fixmap = dmx[F("fixmap")];
it = 0;
for (int i : dmx_fixmap) {
if (it > 14) break;
for (int i = 0; i < dmx_fixmap.size(); i++) {
if (i > 14) break;
CJSON(DMXFixtureMap[i],dmx_fixmap[i]);
it++;
}
#endif