mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
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
|
||||
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 New Issue
Block a user