Remember lastColor and last Bri for Solid RGBW (#743)

This commit is contained in:
Def3nder 2020-03-01 12:25:44 +01:00 committed by GitHub
parent 79da716a44
commit f28502514f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -863,7 +863,9 @@ void WS2812FX::setRgbwPwm(void) {
} }
#else #else
bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255); bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255);
#endif #endif
_analogLastColor = color;
_analogLastBri = b;
} }
#else #else
void WS2812FX::setRgbwPwm() {} void WS2812FX::setRgbwPwm() {}