Closed jrhbcn closed 2 months ago
The 0.5f
is for rounding the float value to uint8_t
. So values 89.9%
map to 90%
instead of 89%
. It might be overkill if our resolution is 2% but I think it is better to leave it like this so we do not add an extra error in the conversion.
I have modified the files, let's see if I caught all trailing whitespaces.
Awesome. That looks great. Tks @jrhbcn!
Changes in BTHOME_V2 protocol: