mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Merge pull request #314 from KraigM/feature/PhilipsHue
Fixed initial color of Philips Hue
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user