From 1f32f96487366f8373e080e3efd7cba5824cab91 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 8 Oct 2022 21:31:59 +0200 Subject: [PATCH] Temporary preset bugfix. --- wled00/presets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/presets.cpp b/wled00/presets.cpp index 317e33b6..96e3bb59 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -169,8 +169,8 @@ void savePreset(byte index, const char* pname, JsonObject sObj) sObj.remove(F("error")); sObj.remove(F("psave")); if (sObj["o"].isNull()) { // "o" marks a playlist or manually entered API - includeBri = sObj["ib"].as(); - segBounds = sObj["sb"].as(); + includeBri = sObj["ib"].as() || index==255; // temporary preset needs brightness + segBounds = sObj["sb"].as() || index==255; // temporary preset needs bounds selectedOnly = sObj[F("sc")].as(); sObj.remove("ib"); sObj.remove("sb");