BrewPi/firmware

Error in fixed point to string conversion when converting number close to whole number: x.998

elcojacobs opened this issue · 1 comments

fixedPointToString used longTempDiffToInt, to get the integer part of the string. This function however, rounds the result.

When it later rounds the fraction part (0.998) to a whole integer, this integer is added twice. The result is converting 100.998 to 112 instead of 111.

Fixed in 0.2.10