Fixed compilation for analog (PWM) LEDs

pull/1409/head^2
cschwinne 2020-12-01 00:38:26 +01:00
rodzic ed0b507fb5
commit 55fd781c77
3 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -2,6 +2,10 @@
### WLED version 0.11.0
#### Build 2012010
- Fixed compilation for analog (PWM) LEDs
#### Build 2011290
- Release of WLED 0.11.0 "Mirai"

Wyświetl plik

@ -928,7 +928,7 @@ void WS2812FX::setRgbwPwm(void) {
c.R = col >> 16; c.G = col >> 8; c.B = col; c.W = col >> 24;
byte b = getBrightness();
if (color == _analogLastColor && b == _analogLastBri) return;
if (c == _analogLastColor && b == _analogLastBri) return;
// check color values for Warm / Cold white mix (for RGBW) // EsplanexaDevice.cpp
#ifdef WLED_USE_5CH_LEDS
@ -948,7 +948,7 @@ void WS2812FX::setRgbwPwm(void) {
#else
bus->SetRgbwPwm(c.R * b / 255, c.G * b / 255, c.B * b / 255, c.W * b / 255);
#endif
_analogLastColor = color;
_analogLastColor = c;
_analogLastBri = b;
}
#else

Wyświetl plik

@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2011290
#define VERSION 2012010
//uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG