aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/ex/ST/lsm6ds0.c3
-rw-r--r--testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/os/ex/ST/lsm6ds0.c b/os/ex/ST/lsm6ds0.c
index 444c73dd7..fc3a3a98e 100644
--- a/os/ex/ST/lsm6ds0.c
+++ b/os/ex/ST/lsm6ds0.c
@@ -963,9 +963,6 @@ void lsm6ds0Start(LSM6DS0Driver *devp, const LSM6DS0Config *config) {
{
cr[1] = devp->config->gyrofullscale |
devp->config->gyrooutdatarate;
-#if LSM6DS0_GYRO_USE_ADVANCED || defined(__DOXYGEN__)
- cr[1] |= devp->config->gyrodecmode;
-#endif
}
/* Control register 2 configuration block.*/
diff --git a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
index bd1bd5d6a..48345bb57 100644
--- a/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
+++ b/testex/STM32/STM32F4xx/I2C-LSM6DS0/main.c
@@ -63,7 +63,7 @@ static const LSM6DS0Config lsm6ds0cfg = {
LSM6DS0_GYRO_LP_DISABLED,
LSM6DS0_GYRO_OUT_SEL_0,
LSM6DS0_GYRO_HP_DISABLED,
- LSM6DS0_GYRO_HPCF_0
+ LSM6DS0_GYRO_HPCF_0,
#endif
#if LSM6DS0_USE_ADVANCED || defined(__DOXYGEN__)
LSM6DS0_BDU_BLOCKED,