From 1ad323b0e8e6472b59070e54d606631572a3b74a Mon Sep 17 00:00:00 2001 From: Kraig McConaghy Date: Fri, 23 Oct 2015 19:53:02 -0500 Subject: [PATCH] Fixed initial color calc to range from 0-360 (as documented) instead of 0-100 (likely typo) --- platforms/PhilipsHue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/PhilipsHue.js b/platforms/PhilipsHue.js index 40dcc33..b6fe8fe 100644 --- a/platforms/PhilipsHue.js +++ b/platforms/PhilipsHue.js @@ -167,7 +167,7 @@ PhilipsHueAccessory.prototype = { // Convert 0-65535 to 0-360 hueToArcDegrees: function(value) { value = value/65535; - value = value*100; + value = value*360; value = Math.round(value); return value; },