diff --git a/CHANGELOG.md b/CHANGELOG.md index 91619a89..24c6becc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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" diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index ddb49f6f..4418cfb7 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -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 diff --git a/wled00/wled.h b/wled00/wled.h index f56bc1e8..93ca1378 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -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