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:
01e3943
)
The previous test may never come true if we do not set the flag
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 18 Sep 2014 19:53:11 +0000
(21:53 +0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
drivers/tmp101_temp_sensor.c
patch
|
blob
|
history
diff --git
a/drivers/tmp101_temp_sensor.c
b/drivers/tmp101_temp_sensor.c
index
fef9bc5
..
e358c75
100644
(file)
--- a/
drivers/tmp101_temp_sensor.c
+++ b/
drivers/tmp101_temp_sensor.c
@@
-123,6
+123,7
@@
int tmp101_sensor_read(uint16_t* raw, int* deci_degrees)
} else {
/* Send (write) temperature register address to TMP101 internal pointer */
ret = i2c_read(cmd_buf, CMD_BUF_SIZE, ctrl_buf, (char*)&temp, 2);
+ last_accessed_register = TMP_REG_TEMPERATURE;
}
if (ret == 2) {
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 !