Skip to content

Commit

Permalink
Update LSM6DSV16XSensor.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Parata <[email protected]>
  • Loading branch information
cparata authored Jun 22, 2023
1 parent 514af75 commit f588bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LSM6DSV16XSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::Disable_Double_Tap_Detection()

tap_ths_6d.tap_ths_z = 0x0U;

if (lsm6dsv16x_write_reg(&reg_ctx, LSM6DSV16X_TAP_CFG0, (uint8_t *)&tap_ths_6d, 1) != LSM6DSV16X_OK) {
if (lsm6dsv16x_write_reg(&reg_ctx, LSM6DSV16X_TAP_THS_6D, (uint8_t *)&tap_ths_6d, 1) != LSM6DSV16X_OK) {
return LSM6DSV16X_ERROR;
}

Expand Down

0 comments on commit f588bc2

Please sign in to comment.