mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-24 13:14:12 +00: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
|
||||
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