Skip to content

Commit 40bfe61

Browse files
authored
bugfix: avoid double blanking segments
if both seg.reset and seg.needsBlank were set, this caused a second (unwanted) blanking in frame 1.
1 parent 2cc0848 commit 40bfe61

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
@@ -277,7 +277,7 @@ void Segment::resetIfRequired() {
277277
next_time = 0; step = 0; call = 0; aux0 = 0; aux1 = 0;
278278
reset = false; // setOption(SEG_OPTION_RESET, false);
279279
startFrame(); // WLEDMM update cached propoerties
280-
if (isActive() && !freeze) fill(BLACK); // WLEDMM start clean
280+
if (isActive() && !freeze) { fill(BLACK); needsBlank = false; } // WLEDMM start clean
281281
DEBUG_PRINTLN("Segment reset");
282282
} else if (needsBlank) {
283283
startFrame(); // WLEDMM update cached propoerties

0 commit comments

Comments
 (0)