Skip to content

Commit 453cc0c

Browse files
authored
Merge pull request wled#1353 from AbhiGulati/fix-hue-white
Fix Hue sync for RGBW white in XY color mode
2 parents 176e18e + 39009c4 commit 453cc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/colors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void colorXYtoRGB(float x, float y, byte* rgb) //coordinates to rgb (https://www
164164
rgb[0] = 255.0*r;
165165
rgb[1] = 255.0*g;
166166
rgb[2] = 255.0*b;
167-
if (useRGBW) colorRGBtoRGBW(col);
167+
if (useRGBW && strip.rgbwMode == RGBW_MODE_LEGACY) colorRGBtoRGBW(col);
168168
}
169169

170170
void colorRGBtoXY(byte* rgb, float* xy) //rgb to coordinates (https://www.developers.meethue.com/documentation/color-conversions-rgb-xy)

0 commit comments

Comments
 (0)