Blending style bugfix (wrong limit)

SoundSim bugfix (missing options)
This commit is contained in:
Blaž Kristan
2025-02-04 18:42:38 +01:00
parent b64cd36468
commit 64a02b705a
2 changed files with 3 additions and 1 deletions

View File

@@ -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)