From dd3f2b15b427518479d95ad697277576e6535123 Mon Sep 17 00:00:00 2001 From: Vasily Date: Mon, 30 Sep 2019 15:01:45 +0300 Subject: [PATCH] Add return statement --- src/mgos_imu_icm20948.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mgos_imu_icm20948.c b/src/mgos_imu_icm20948.c index 23893f7..678d1a8 100644 --- a/src/mgos_imu_icm20948.c +++ b/src/mgos_imu_icm20948.c @@ -266,6 +266,8 @@ bool mgos_imu_icm20948_acc_enable_wom(struct mgos_imu_acc *dev, void *imu_user_d // REG2_ACCEL_INTEL_CTRL: ACCEL_INTEL_EN=1; ACCEL_INTEL_MODE_INT=1(Compare with previous); mgos_i2c_write_reg_b(dev->i2c, dev->i2caddr, MGOS_ICM20948_REG2_ACCEL_INTEL_CTRL, 0x03); mgos_i2c_write_reg_b(dev->i2c, dev->i2caddr, MGOS_ICM20948_REG2_ACCEL_WOM_THR, threshold_mg); + + return true; } bool mgos_imu_icm20948_acc_wom_int_status(struct mgos_imu_acc *dev, void *imu_user_data) {