Skip to content

Commit a839809

Browse files
committed
change random mode choice on presetFallback
1 parent 88ceba5 commit a839809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/ir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ void decodeIRJson(uint32_t code)
595595
decBrightness();
596596
} else if (cmdStr.startsWith(F("!presetF"))) { //!presetFallback
597597
uint8_t p1 = fdo["PL"] ? fdo["PL"] : 1;
598-
uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(100);
598+
uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(MODE_COUNT);
599599
uint8_t p3 = fdo["FP"] ? fdo["FP"] : 0;
600600
presetFallback(p1, p2, p3);
601601
}

0 commit comments

Comments
 (0)