Orange flash fix (#3196) for transitions

This commit is contained in:
Blaz Kristan
2024-01-14 17:40:04 +01:00
parent 45dc5e236d
commit 21d21ea7f0
2 changed files with 8 additions and 2 deletions

View File

@@ -537,6 +537,13 @@ void WLED::beginStrip()
else if (bri == 0) bri = 128;
} else {
// fix for #3196
if (bootPreset > 0) {
bool oldTransition = fadeTransition; // workaround if transitions are enabled
fadeTransition = false; // ignore transitions temporarily
strip.setColor(0, BLACK); // set all segments black
fadeTransition = oldTransition; // restore transitions
col[0] = col[1] = col[2] = col[3] = 0; // needed for colorUpdated()
}
briLast = briS; bri = 0;
strip.fill(BLACK);
strip.show();