From 3e519001a3d4b43c88f3510307c05988a9ec3a91 Mon Sep 17 00:00:00 2001 From: Andre Lackmann Date: Fri, 30 Jun 2023 23:03:32 +1000 Subject: [PATCH] Removed current cycle assignment that clears current value (#3262) --- wled00/presets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/presets.cpp b/wled00/presets.cpp index b48db06c..58f800d7 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -180,7 +180,7 @@ void handlePresets() fdo.remove("ps"); // remove load request for presets to prevent recursive crash (if not called by button and contains preset cycling string "1~5~") deserializeState(fdo, CALL_MODE_NO_NOTIFY, tmpPreset); // may change presetToApply by calling applyPreset() } - if (!errorFlag && tmpPreset < 255 && changePreset) presetCycCurr = currentPreset = tmpPreset; + if (!errorFlag && tmpPreset < 255 && changePreset) currentPreset = tmpPreset; #if defined(ARDUINO_ARCH_ESP32) //Aircoookie recommended not to delete buffer