Skip to content

Commit

Permalink
Add return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily committed Sep 30, 2019
1 parent b2201c9 commit dd3f2b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mgos_imu_icm20948.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd3f2b1

Please sign in to comment.