From a839809eb8b706ac6415175c79534b7705fe5036 Mon Sep 17 00:00:00 2001 From: Scott Bailey Date: Fri, 3 Sep 2021 00:14:07 -0700 Subject: [PATCH] change random mode choice on presetFallback --- wled00/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/ir.cpp b/wled00/ir.cpp index 63b5410f..b1812caa 100644 --- a/wled00/ir.cpp +++ b/wled00/ir.cpp @@ -595,7 +595,7 @@ void decodeIRJson(uint32_t code) decBrightness(); } else if (cmdStr.startsWith(F("!presetF"))) { //!presetFallback uint8_t p1 = fdo["PL"] ? fdo["PL"] : 1; - uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(100); + uint8_t p2 = fdo["FX"] ? fdo["FX"] : random8(MODE_COUNT); uint8_t p3 = fdo["FP"] ? fdo["FP"] : 0; presetFallback(p1, p2, p3); }