bugfix: avoid double blanking segments
if both seg.reset and seg.needsBlank were set, this caused a second (unwanted) blanking in frame 1.
This commit is contained in:
@@ -277,7 +277,7 @@ void Segment::resetIfRequired() {
|
|||||||
next_time = 0; step = 0; call = 0; aux0 = 0; aux1 = 0;
|
next_time = 0; step = 0; call = 0; aux0 = 0; aux1 = 0;
|
||||||
reset = false; // setOption(SEG_OPTION_RESET, false);
|
reset = false; // setOption(SEG_OPTION_RESET, false);
|
||||||
startFrame(); // WLEDMM update cached propoerties
|
startFrame(); // WLEDMM update cached propoerties
|
||||||
if (isActive() && !freeze) fill(BLACK); // WLEDMM start clean
|
if (isActive() && !freeze) { fill(BLACK); needsBlank = false; } // WLEDMM start clean
|
||||||
DEBUG_PRINTLN("Segment reset");
|
DEBUG_PRINTLN("Segment reset");
|
||||||
} else if (needsBlank) {
|
} else if (needsBlank) {
|
||||||
startFrame(); // WLEDMM update cached propoerties
|
startFrame(); // WLEDMM update cached propoerties
|
||||||
|
|||||||
Reference in New Issue
Block a user