+2
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
while retrieving temperature from ds3231, the result may be overflow since s16 is too small for a multiplication with 250. ie. if temp_buf[0] == 0x2d, the result (s16 temp) will be negative. Signed-off-by:Akinobu Mita <akinobu.mita@gmail.com> Tested-by:
Michael Tatarinov <kukabu@gmail.com> Signed-off-by:
Alexandre Belloni <alexandre.belloni@free-electrons.com>