Skip to content

Commit ae46eea

Browse files
committed
Fixed invalid save when modifying preset before refresh (might be related to wled#1361)
Fixed brightness factor ignored on realtime timeout (fixes wled#1363) Fixed Phase and Chase effects with LED counts >256 (PR wled#1366)
1 parent 79c83a9 commit ae46eea

File tree

5 files changed

+360
-345
lines changed

5 files changed

+360
-345
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
### Development versions after the 0.10.2 release
44

5+
#### Build 2011220
6+
7+
- Fixed invalid save when modifying preset before refresh (might be related to #1361)
8+
- Fixed brightness factor ignored on realtime timeout (fixes #1363)
9+
- Fixed Phase and Chase effects with LED counts >256 (PR #1366)
10+
511
#### Build 2011210
612

713
- Fixed Brightness slider beneath color wheel not working (fixes #1360)

wled00/data/index.htm

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,10 @@
21812181
} else if (raw.indexOf('{') > -1) {
21822182
d.getElementById(`p${i}warn`).innerHTML = "⚠ Syntax error in custom JSON API command";
21832183
return;
2184-
}
2184+
} else if (raw.indexOf("Please") == 0) {
2185+
d.getElementById(`p${i}warn`).innerHTML = "⚠ Please refresh the page before modifying this preset";
2186+
return;
2187+
}
21852188
}
21862189
obj["o"] = true;
21872190
} else {
@@ -2367,9 +2370,11 @@
23672370
var p = i-100;
23682371
d.getElementById(`p${p}o`).style.background = (expanded[i] || p != currentPreset)?"var(--c-2)":"var(--c-6)";
23692372
if (d.getElementById('seg' +i).innerHTML == "") {
2370-
d.getElementById('seg' +i).innerHTML = makeP(p);
2371-
d.getElementById(`p${p}api`).value = papiVal(p);
2372-
tglCs(p);
2373+
d.getElementById('seg' +i).innerHTML = makeP(p);
2374+
var papi = papiVal(p);
2375+
d.getElementById(`p${p}api`).value = papi;
2376+
if (papi.indexOf("Please") == 0) d.getElementById(`p${p}cstgl`).checked = true;
2377+
tglCs(p);
23732378
}
23742379
}
23752380
}

0 commit comments

Comments
 (0)