Fixed undesirable boot color transition

This commit is contained in:
cschwinne
2021-08-06 02:08:36 +02:00
parent 815940913b
commit bd13336256
7 changed files with 1618 additions and 1607 deletions

View File

@@ -46,10 +46,6 @@ byte scaledBri(byte in)
void setAllLeds() {
if (!realtimeMode || !arlsForceMaxBri)
{
strip.setBrightness(scaledBri(briT));
}
if (strip.isRgbw && strip.rgbwMode == RGBW_MODE_LEGACY)
{
colorRGBtoRGBW(col);
@@ -61,6 +57,10 @@ void setAllLeds() {
{
col[3] = 0; colSec[3] = 0;
}
if (!realtimeMode || !arlsForceMaxBri)
{
strip.setBrightness(scaledBri(briT));
}
}
@@ -142,7 +142,6 @@ void colorUpdated(int callMode)
}
if (briT == 0)
{
//setLedsStandard(true); //do not color transition if starting from off!
if (callMode != CALL_MODE_NOTIFICATION) resetTimebase(); //effect start from beginning
}