-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
blazoncek
Author
Collaborator
|
||
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(); | ||
|
if these lines are moved further above and always executed, the glitch is also fixed when
turnOnAtBoot
is enabled.I tested this code and found no downside. Am I missing something or would this be a better fix?