zephyr/drivers/sensor/ina219
Simon Frank ba7af2f780 include: sensor: sensor_value from double overflow
sensor_value_from_double had a early overflow when converting the
fractional part (val2).  This occured when input was more then
2147.493647 (inp >= INT32_MAX/1000000.0 + 0.01).

return value -ERANGE as this is what errno is set to by `strtod` and
similar posix functions.

fixes issue #39176

Signed-off-by: Simon Frank <simon.frank@lohmega.com>
2022-02-24 13:45:29 -08:00
..
CMakeLists.txt
Kconfig
ina219.c include: sensor: sensor_value from double overflow 2022-02-24 13:45:29 -08:00
ina219.h drivers: fix double promotion warnings 2021-11-24 17:14:25 -05:00