Fixed initial color calc to range from 0-360 (as documented) instead of 0-100 (likely typo)

This commit is contained in:
Kraig McConaghy
2015-10-23 19:53:02 -05:00
parent 48e0f8b812
commit 1ad323b0e8

View File

@@ -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;
},