summaryrefslogtreecommitdiff
path: root/reference/C/EXAMPLES/printenv.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-27Initial import (2.0.2-6)2.0.2-6Tobias Klauser1-0/+24
4space:mode:
authorZhuang Yuyao <mlistz@gmail.com>2016-04-18 09:21:42 +0900
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-04-21 23:20:59 +0200
commit9a3dce62cc5640d7ea17733a2bd1b57665c232b0 (patch)
tree18262d9099432d76b6598453783c69ea25d77c8a /Documentation/devicetree/bindings
parent00c9329ebe2d19a13afd86ba75218f868f2788ba (diff)
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 <akinobu.mita@gmail.com> Tested-by: Michael Tatarinov <kukabu@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation/devicetree/bindings')