only call endImagePlayback if reset true in resetIfRequired
This commit is contained in:
@@ -278,6 +278,9 @@ void Segment::resetIfRequired() {
|
|||||||
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); needsBlank = false; } // WLEDMM start clean
|
if (isActive() && !freeze) { fill(BLACK); needsBlank = false; } // WLEDMM start clean
|
||||||
|
#ifdef WLED_ENABLE_GIF
|
||||||
|
endImagePlayback(this);
|
||||||
|
#endif
|
||||||
DEBUG_PRINTLN("Segment reset");
|
DEBUG_PRINTLN("Segment reset");
|
||||||
} else if (needsBlank) {
|
} else if (needsBlank) {
|
||||||
startFrame(); // WLEDMM update cached propoerties
|
startFrame(); // WLEDMM update cached propoerties
|
||||||
@@ -287,9 +290,6 @@ void Segment::resetIfRequired() {
|
|||||||
needsBlank = false;
|
needsBlank = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef WLED_ENABLE_GIF
|
|
||||||
endImagePlayback(this);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Segment::setUpLeds() {
|
void Segment::setUpLeds() {
|
||||||
|
|||||||
Reference in New Issue
Block a user