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 88ceba5 commit a839809Copy full SHA for a839809
wled00/ir.cpp
@@ -595,7 +595,7 @@ void decodeIRJson(uint32_t code)
595
decBrightness();
596
} else if (cmdStr.startsWith(F("!presetF"))) { //!presetFallback
597
uint8_t p1 = fdo["PL"] ? fdo["PL"] : 1;
598
- uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(100);
+ uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(MODE_COUNT);
599
uint8_t p3 = fdo["FP"] ? fdo["FP"] : 0;
600
presetFallback(p1, p2, p3);
601
}
0 commit comments