Skip to content

Commit

Permalink
Update LSM6DSV16XSensor.cpp
Browse files Browse the repository at this point in the history
Test_G_IMU error (xl_data_rate_set -> gy_data_rate_set)

Signed-off-by: RestucciaMichele <72453178+RestucciaMichele@users.noreply.github.com>
  • Loading branch information
RestucciaMichele authored Nov 4, 2024
1 parent 95bd249 commit 3888d9a
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 @@ -3619,7 +3619,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::Test_G_IMU(uint8_t TestType = LSM6DSV1
return LSM6DSV16X_ERROR;
}

if (lsm6dsv16x_xl_data_rate_set(&reg_ctx, LSM6DSV16X_ODR_OFF) != LSM6DSV16X_OK) {
if (lsm6dsv16x_gy_data_rate_set(&reg_ctx, LSM6DSV16X_ODR_OFF) != LSM6DSV16X_OK) {
return LSM6DSV16X_ERROR;
}
return LSM6DSV16X_OK;
Expand Down

0 comments on commit 3888d9a

Please sign in to comment.