zephyr/drivers/sensor/lps22hh
Armando Visconti c3050a5aab drivers/sensor: lps22hh: Fix int32 overflow in the val2 part
The val2 calculation was done using (1000000 / 40960) as
multiplying factor, which was sometimes leading to a
int32 overflow. So, let's use the equivalent (but smaller)
(3125 / 128).

Fix #38090

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-09-06 03:31:50 -04:00
..
CMakeLists.txt
Kconfig
lps22hh.c drivers/sensor: lps22hh: Fix int32 overflow in the val2 part 2021-09-06 03:31:50 -04:00
lps22hh.h
lps22hh_i2c.c
lps22hh_spi.c
lps22hh_trigger.c