mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-23 22:07:32 +01:00
Fixed initial color calc to range from 0-360 (as documented) instead of 0-100 (likely typo)
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