From 5453ae81a64cf8200e09bf745d158b64551ede32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Thu, 11 Nov 2021 07:20:17 +0100 Subject: [PATCH] Fix for white calculation in ACCURATE 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);