Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: ds1307: ds3231 temperature s16 overflow
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 <[email protected]> Tested-by: Michael Tatarinov <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
- Loading branch information