Skip to content
Commit e93bf00d authored by Jan Kablitz's avatar Jan Kablitz Committed by Anas Nashif
Browse files

drivers: sensor: st: lis2du12: fix missing power down before sw reset



According to the LIS2DU12 datasheet (p.30), the device must be
inpower-down mode before executing a software reset.
Entering power-down requires setting the ODR field to 0x000.
This commit adds the missing call to set ODR=0x000 before issuing the
reset. Without this step, the sensor does not recover after a controller
reset and only resumes operation after a full power cycle.

Signed-off-by: default avatarJan Kablitz <jan.kablitz@8tronix.de>
parent b7c971d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment