moifort / homebridge-create-fan

Connect your create ceiling fan into homekit
Apache License 2.0
8 stars 4 forks source link

Fix toStep for speed fan #3

Closed marsuboss closed 1 year ago

marsuboss commented 1 year ago

If we leave 16.67 with 100, it returns to 5 so it never reaches speed 6

-> Math.floor(100/16.67)
<- 5
-> Math.floor(100/16.66)
<- 6
marsuboss commented 1 year ago

My bad...

moifort commented 1 year ago

No problem, thanks for your update, you motivate me to improve it. :)