Skip to content

Commit 0516dfe

Browse files
authored
bugfix: do not reset segments if unchanged wled#4969
lines were swapped, causing segment reset on every preset call.
2 parents 68a8534 + 5a52f4a commit 0516dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/FX_fcn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ void Segment::setGeometry(uint16_t i1, uint16_t i2, uint8_t grp, uint8_t spc, ui
486486
if (ofs < UINT16_MAX) offset = ofs;
487487

488488
DEBUG_PRINTF_P(PSTR("Segment geometry: %d,%d -> %d,%d\n"), (int)i1, (int)i2, (int)i1Y, (int)i2Y);
489-
markForReset();
490489
if (boundsUnchanged) return;
490+
markForReset();
491491

492492
// apply change immediately
493493
if (i2 <= i1) { //disable segment

0 commit comments

Comments
 (0)