Skip to content

Commit

Permalink
Fixed invalid save when modifying preset before refresh (might be rel…
Browse files Browse the repository at this point in the history
…ated to Aircoookie#1361)

Fixed brightness factor ignored on realtime timeout (fixes Aircoookie#1363)
Fixed Phase and Chase effects with LED counts >256 (PR Aircoookie#1366)
  • Loading branch information
Aircoookie committed Nov 22, 2020
1 parent 79c83a9 commit ae46eea
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 345 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

### Development versions after the 0.10.2 release

#### Build 2011220

- Fixed invalid save when modifying preset before refresh (might be related to #1361)
- Fixed brightness factor ignored on realtime timeout (fixes #1363)
- Fixed Phase and Chase effects with LED counts >256 (PR #1366)

#### Build 2011210

- Fixed Brightness slider beneath color wheel not working (fixes #1360)
Expand Down
13 changes: 9 additions & 4 deletions wled00/data/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,10 @@
} else if (raw.indexOf('{') > -1) {
d.getElementById(`p${i}warn`).innerHTML = "⚠ Syntax error in custom JSON API command";
return;
}
} else if (raw.indexOf("Please") == 0) {
d.getElementById(`p${i}warn`).innerHTML = "⚠ Please refresh the page before modifying this preset";
return;
}
}
obj["o"] = true;
} else {
Expand Down Expand Up @@ -2367,9 +2370,11 @@
var p = i-100;
d.getElementById(`p${p}o`).style.background = (expanded[i] || p != currentPreset)?"var(--c-2)":"var(--c-6)";
if (d.getElementById('seg' +i).innerHTML == "") {
d.getElementById('seg' +i).innerHTML = makeP(p);
d.getElementById(`p${p}api`).value = papiVal(p);
tglCs(p);
d.getElementById('seg' +i).innerHTML = makeP(p);
var papi = papiVal(p);
d.getElementById(`p${p}api`).value = papi;
if (papi.indexOf("Please") == 0) d.getElementById(`p${p}cstgl`).checked = true;
tglCs(p);
}
}
}
Expand Down
Loading

0 comments on commit ae46eea

Please sign in to comment.