diff --git a/platform/z1/dev/tmp102.c b/platform/z1/dev/tmp102.c index 11844acb0..cc9394b7b 100644 --- a/platform/z1/dev/tmp102.c +++ b/platform/z1/dev/tmp102.c @@ -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; }