Skip to content
Commit 9e473f9f authored by Peter Bigot's avatar Peter Bigot Committed by Maureen Helm
Browse files

drivers: sensor: lsm6dsl: correct initialization order



The function that initializes interrupts configures the sensor
register to enable interrupts.  It is called before the function that
resets the sensor.  Swap the order.

Also correct the mask argument to the configuration command, and use
the BIT() macro to construct the set argument.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent ad4b365a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment