drivers/sensor: lps22hh: Fix the raw to kPa sample conversion
The lps22hh 24 bit raw sample is left aligned, which means that
it needs to be right-shifted by 8 before applying conversion.
Moreover the conversion has been simplified for clarity.
Fix #35871
Signed-off-by:
Armando Visconti <armando.visconti@st.com>
Loading
Please sign in to comment