mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 01:36:32 +00:00
Bugfix for 1D setup.
- incorrcet max segment length calc
This commit is contained in:
parent
1ca4348ca0
commit
92d883db87
@ -1334,7 +1334,7 @@ function readState(s,command=false)
|
|||||||
hasRGB |= !!(lc & 0x01);
|
hasRGB |= !!(lc & 0x01);
|
||||||
hasWhite |= !!(lc & 0x02);
|
hasWhite |= !!(lc & 0x02);
|
||||||
hasCCT |= !!(lc & 0x04);
|
hasCCT |= !!(lc & 0x04);
|
||||||
let sLen = (s.seg[i].stop - s.seg[i].start)*(s.seg[i].stopY - s.seg[i].startY);
|
let sLen = (s.seg[i].stop - s.seg[i].start)*(s.seg[i].stopY?(s.seg[i].stopY - s.seg[i].startY):1);
|
||||||
segLmax = segLmax < sLen ? sLen : segLmax;
|
segLmax = segLmax < sLen ? sLen : segLmax;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1087
wled00/html_ui.h
1087
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user