stefanwichmann / kelvin

Kelvin - The hue bot
MIT License
347 stars 37 forks source link

Fixed a bug in equalsFloat when maxDiff = 0. #91

Closed RaphaelMarinier closed 2 years ago

RaphaelMarinier commented 3 years ago

It was always returning false due to 'rounded' being NaN. The consequence was that 'hasChanged' in huelight was always returning false when the light was in xy color mode, so manual color changes were not detected. Color temperature changes were correctly detected, which is probably the reason why this bug was not found earlier.

stefanwichmann commented 2 years ago

Thx a lot for the PR