mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-22 22:05:42 +01: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
|
// Convert 0-65535 to 0-360
|
||||||
hueToArcDegrees: function(value) {
|
hueToArcDegrees: function(value) {
|
||||||
value = value/65535;
|
value = value/65535;
|
||||||
value = value*100;
|
value = value*360;
|
||||||
value = Math.round(value);
|
value = Math.round(value);
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user