zephyr/drivers/sensor/tmp108
Boris Mulder f87143d919 drivers: sensor: tmp108: Handle negative values correctly
Negative temperatures were converted to the sensor_value struct
incorrectly.
This fixes the causes: signed/unsigned mixups and integer overflows.
Also clarified temperature calculation using multiplier/divisor config
values.

Fixes #68240

Signed-off-by: Boris Mulder <b.mulder@innoseis.com>
2024-03-29 15:09:25 +00:00
..
CMakeLists.txt
Kconfig
tmp108_trigger.c
tmp108.c drivers: sensor: tmp108: Handle negative values correctly 2024-03-29 15:09:25 +00:00
tmp108.h drivers: sensor: tmp108: Handle negative values correctly 2024-03-29 15:09:25 +00:00