From 64a02b705aae8d9ef6f7ed5e33af3046ed947075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Tue, 4 Feb 2025 18:42:38 +0100 Subject: [PATCH] Blending style bugfix (wrong limit) SoundSim bugfix (missing options) --- wled00/data/index.js | 2 ++ wled00/json.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index dc94cf426..8237e6913 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -807,6 +807,8 @@ function populateSegments(s) `
`+ ``; cn += `
`+ diff --git a/wled00/json.cpp b/wled00/json.cpp index d4f0d7771..200307464 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -338,7 +338,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId) #ifndef WLED_DISABLE_MODE_BLEND blendingStyle = root[F("bs")] | blendingStyle; - blendingStyle = constrain(blendingStyle, 0, BLEND_STYLE_COUNT-1); + blendingStyle &= 0x1F; #endif // temporary transition (applies only once)