From 5d3a83335bee25381cc738306ac1d17b4e428407 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Thu, 17 Aug 2017 17:01:31 +0200 Subject: [PATCH] Fixed wrong color-calculation for novation devices --- RGB.NET.Devices.Novation/Generic/NovationRGBDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RGB.NET.Devices.Novation/Generic/NovationRGBDevice.cs b/RGB.NET.Devices.Novation/Generic/NovationRGBDevice.cs index db4da64..29f8dba 100644 --- a/RGB.NET.Devices.Novation/Generic/NovationRGBDevice.cs +++ b/RGB.NET.Devices.Novation/Generic/NovationRGBDevice.cs @@ -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; }