From 39009c482ddb969bcb45fa740836be46aa029bc0 Mon Sep 17 00:00:00 2001 From: Abhi Gulati Date: Tue, 17 Nov 2020 23:18:30 -0600 Subject: [PATCH] Fix Hue sync for RGBW white in XY color mode --- wled00/colors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/colors.cpp b/wled00/colors.cpp index 361e3e06b..7fc3a8aa0 100644 --- a/wled00/colors.cpp +++ b/wled00/colors.cpp @@ -164,7 +164,7 @@ void colorXYtoRGB(float x, float y, byte* rgb) //coordinates to rgb (https://www rgb[0] = 255.0*r; rgb[1] = 255.0*g; rgb[2] = 255.0*b; - if (useRGBW) colorRGBtoRGBW(col); + if (useRGBW && strip.rgbwMode == RGBW_MODE_LEGACY) colorRGBtoRGBW(col); } void colorRGBtoXY(byte* rgb, float* xy) //rgb to coordinates (https://www.developers.meethue.com/documentation/color-conversions-rgb-xy)