From eb92c0bbf5242b5828ca97bea54576372bcb65e3 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 11 Nov 2021 17:34:38 +0100 Subject: [PATCH] Fix for ACCURATE auto-white mode. --- wled00/bus_manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/bus_manager.h b/wled00/bus_manager.h index 4c9a2ae31..cae4ac862 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -284,8 +284,8 @@ class BusPwm : public Bus { void setPixelColor(uint16_t pix, uint32_t c, uint8_t cct) { if (pix != 0 || !_valid) return; //only react to first pixel - c = colorBalanceFromKelvin(2000+(cct<<5), c); // color correction from CCT (w remains unchanged) if (getAutoWhiteMode() != RGBW_MODE_MANUAL_ONLY) c = autoWhiteCalc(c); + c = colorBalanceFromKelvin(2000+(cct<<5), c); // color correction from CCT (w remains unchanged) uint8_t r = R(c); uint8_t g = G(c); uint8_t b = B(c);