Merge pull request #1084 from ludov04/master

Z1: tmp102: simple: fixed wrong cast
This commit is contained in:
Antonio Lignan 2015-05-22 21:59:31 +02:00
commit 630b7f8963

View file

@ -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;
}