iNEMO inertial module: 3D accelerometer and 3D gyroscope.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: X_NUCLEO_IKS01A3 X_NUCLEO_IKS01A3
Diff: LSM6DSOSensor.cpp
- Revision:
- 2:4d14e9edf37e
- Parent:
- 0:6d69e896ce38
- Child:
- 3:4274d9103f1d
diff -r 888ac5f8d970 -r 4d14e9edf37e LSM6DSOSensor.cpp
--- a/LSM6DSOSensor.cpp Wed Mar 06 12:37:22 2019 +0000
+++ b/LSM6DSOSensor.cpp Mon Jun 03 09:16:08 2019 +0000
@@ -100,6 +100,12 @@
*/
int LSM6DSOSensor::init(void *init)
{
+ /* Disable I3C */
+ if (lsm6dso_i3c_disable_set(&_reg_ctx, LSM6DSO_I3C_DISABLE) != 0)
+ {
+ return 1;
+ }
+
/* Enable register address automatically incremented during a multiple byte
access with a serial interface. */
if (lsm6dso_auto_increment_set(&_reg_ctx, PROPERTY_ENABLE) != 0)