Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1504d07
)
Temp conversion was simpler, but not right for negativ values ... fixed
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Mon, 12 Aug 2013 19:49:10 +0000
(21:49 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/temp.c
patch
|
blob
|
history
diff --git
a/drivers/temp.c
b/drivers/temp.c
index
1e89cd5
..
7cb49be
100644
(file)
--- a/
drivers/temp.c
+++ b/
drivers/temp.c
@@
-89,7
+89,7
@@
int probe_sensor(void)
*/
int convert_to_deci_degrees(uint16_t raw)
{
- return (((int)raw * 10) >> 8);
+ return (((int
16_t
)raw * 10) >> 8);
}
/* Temp Read
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !