Fixed wrong color-calculation for novation devices

This commit is contained in:
DarthAffe committed 2017-08-17 17:01:31 +02:00
1 parent 4c90edf614
commit 5d3a83335b
1 file changed
+2 -2
@@ -164,10 +164,10 @@ namespace RGB.NET.Devices.Novation
return (int)Math.Ceiling(color.Value * 3); // red with brightness 1, 2 or 3
if ((color.Hue >= 30) && (color.Hue < 90)) // yellow with brightness 17, 34 or 51
return (int)Math.Ceiling(color.Value * 17);
return (int)Math.Ceiling(color.Value * 3) * 17;
if ((color.Hue >= 90) && (color.Hue < 150)) // green with brightness 16, 32 or 48
return (int)Math.Ceiling(color.Value * 16);
return (int)Math.Ceiling(color.Value * 3) * 16;
return 0;
}