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

@ -807,6 +807,8 @@ function populateSegments(s)
`<div class="sel-p"><select class="sel-p" id="seg${i}si" onchange="setSi(${i})">`+
`<option value="0" ${inst.si==0?' selected':''}>BeatSin</option>`+
`<option value="1" ${inst.si==1?' selected':''}>WeWillRockYou</option>`+
`<option value="2" ${inst.si==2?' selected':''}>10/13</option>`+
`<option value="3" ${inst.si==3?' selected':''}>14/3</option>`+
`</select></div>`+
`</div>`;
cn += `<div class="seg lstI ${i==s.mainseg && !simplifiedUI ? 'selected' : ''} ${exp ? "expanded":""}" id="seg${i}" data-set="${inst.set}">`+

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)