Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.6k stars 3.14k forks source link

Compiling WLED for default_envs = esp8285_5CH_H801 throws error #802

Closed Dreamoffice closed 3 years ago

Dreamoffice commented 4 years ago

Hello i m trying to compile WLED to use it on the Novostella Floodlights. These are 5 channel pwm LED lights. therefore i did the following:

Bild 1 Bild 2

but during compiling i get this error: Bild 3

wled00\FX_fcn.cpp: In member function 'void WS2812FX::setRgbwPwm()': wled00\FX_fcn.cpp:829:20: error: cannot convert 'RgbwColor' to 'uint32_t {aka unsigned int}' in assignment _analogLastColor = color; ^ *** [.pio\build\esp8285_5CH_H801\src\FX_fcn.cpp.o] Error 1 Bild 4

i didn't get the problem....

br Dave

huggy-d1 commented 4 years ago

I proposed an edit to FX.h that changes _analogLastColor to datatype RgbwColor. Hope that works. Otherwise it may need to be defined locally as a class property, which is kinda weird (to me at least) for conditionally used variables and logic.

Aircoookie commented 4 years ago

@huggy-d1 i did just that, change the type to RgbwColor yesterday. Just didn't push yet 😅 Fixed in master!