We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e8aee commit 59592f0Copy full SHA for 59592f0
wled00/cfg.cpp
@@ -751,14 +751,12 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
751
CJSON(DMXStartLED,dmx[F("start-led")]);
752
753
JsonArray dmx_fixmap = dmx[F("fixmap")];
754
- for (int i = 0; i < dmx_fixmap.size(); i++) {
755
- if (i > 14) break;
+ for (int i = 0; i < MIN(dmx_fixmap.size(), 15); i++) {
756
CJSON(DMXFixtureMap[i],dmx_fixmap[i]);
757
}
758
759
JsonArray dmx_chsval = dmx[F("chsval")];
760
- for (int i = 0; i < dmx_chsval.size(); i++) {
761
+ for (int i = 0; i < MIN(dmx_chsval.size(), 15); i++) {
762
CJSON(DMXChannelsValue[i],dmx_chsval[i]);
763
764
0 commit comments