Skip to content

Commit 64a02b7

Browse files
committed
Blending style bugfix (wrong limit)
SoundSim bugfix (missing options)
1 parent b64cd36 commit 64a02b7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

wled00/data/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ function populateSegments(s)
807807
`<div class="sel-p"><select class="sel-p" id="seg${i}si" onchange="setSi(${i})">`+
808808
`<option value="0" ${inst.si==0?' selected':''}>BeatSin</option>`+
809809
`<option value="1" ${inst.si==1?' selected':''}>WeWillRockYou</option>`+
810+
`<option value="2" ${inst.si==2?' selected':''}>10/13</option>`+
811+
`<option value="3" ${inst.si==3?' selected':''}>14/3</option>`+
810812
`</select></div>`+
811813
`</div>`;
812814
cn += `<div class="seg lstI ${i==s.mainseg && !simplifiedUI ? 'selected' : ''} ${exp ? "expanded":""}" id="seg${i}" data-set="${inst.set}">`+

wled00/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
338338

339339
#ifndef WLED_DISABLE_MODE_BLEND
340340
blendingStyle = root[F("bs")] | blendingStyle;
341-
blendingStyle = constrain(blendingStyle, 0, BLEND_STYLE_COUNT-1);
341+
blendingStyle &= 0x1F;
342342
#endif
343343

344344
// temporary transition (applies only once)

0 commit comments

Comments
 (0)