Skip to content

Commit

Permalink
Blending style bugfix (wrong limit)
Browse files Browse the repository at this point in the history
SoundSim bugfix (missing options)
  • Loading branch information
blazoncek committed Feb 4, 2025
1 parent b64cd36 commit 64a02b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wled00/data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}">`+
Expand Down
2 changes: 1 addition & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64a02b7

Please sign in to comment.