diff --git a/wled00/bus_manager.h b/wled00/bus_manager.h index 7366bcc3..b0838ae7 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -454,8 +454,8 @@ class BusNetwork : public Bus { void setPixelColor(uint16_t pix, uint32_t c) { if (!_valid || pix >= _len) return; + if (isRgbw()) c = autoWhiteCalc(c); if (_cct >= 1900) c = colorBalanceFromKelvin(_cct, c); //color correction from CCT - c = autoWhiteCalc(c); uint16_t offset = pix * _UDPchannels; _data[offset] = R(c); _data[offset+1] = G(c);