Skip to content
Commit 0d38a886 authored by Armando Visconti's avatar Armando Visconti Committed by Anas Nashif
Browse files

drivers/sensor/: lis2dux12: fix ODR setting



In lis2dux12_freq_to_odr_val, the loop through the array of possible ODR
frequencies can break sooner than expected if power-mode is
set to High Performance mode and the requested ODR is less than or
equal to 25Hz.

Moreover, move the "odr |= 0x10" statement used for HP mode in the
chip_api set_odr_raw() API, so that we enter the HP mode even when the
ODR is set from DT only.

Signed-off-by: default avatarArmando Visconti <armando.visconti@st.com>
parent 0b9095e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment