Skip to content
Commit c3050a5a authored by Armando Visconti's avatar Armando Visconti Committed by Christopher Friedt
Browse files

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: default avatarArmando Visconti <armando.visconti@st.com>
parent 55913572
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment