Merge pull request #1084 from ludov04/master
Z1: tmp102: simple: fixed wrong cast
This commit is contained in:
commit
630b7f8963
|
@ -185,5 +185,6 @@ tmp102_read_temp_x100(void)
|
||||||
int8_t
|
int8_t
|
||||||
tmp102_read_temp_simple(void)
|
tmp102_read_temp_simple(void)
|
||||||
{
|
{
|
||||||
return (int8_t)tmp102_read_temp_x100() / 100;
|
/* Casted to int8_t: We don't expect temperatures outside -128 to 127 C */
|
||||||
|
return tmp102_read_temp_x100() / 100;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue