Skip to content

Commit a18b133

Browse files
authored
Bugfix
Reordering did not enable editing last bus' type.
1 parent 00fab2e commit a18b133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/data/settings_leds.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
let dC = 0; // count of digital buses (for parallel I2S)
272272
let LTs = d.Sf.querySelectorAll("#mLC select[name^=LT]");
273273
LTs.forEach((s,i)=>{
274-
if (i < LTs.length-1) s.disabled = true; // prevent changing type (as we can't update options)
274+
s.disabled = (i < LTs.length-1); // prevent changing type (as we can't update options)
275275
// is the field a LED type?
276276
var n = s.name.substring(2,3); // bus number (0-Z)
277277
var t = parseInt(s.value);

0 commit comments

Comments
 (0)