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 Jul 4, 2024
1 parent 408a529 commit 13db7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LSM6DSV16XSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::begin()
: LSM6DSV16X_16g;

/* Full scale selection. */
if (lsm6dsv16x_xl_full_scale_set(&reg_ctx, LSM6DSV16X_2g) != LSM6DSV16X_OK) {
if (Set_X_FS(2) != LSM6DSV16X_OK) {
return LSM6DSV16X_ERROR;
}

Expand All @@ -147,7 +147,7 @@ LSM6DSV16XStatusTypeDef LSM6DSV16XSensor::begin()
: LSM6DSV16X_4000dps;

/* Full scale selection. */
if (lsm6dsv16x_gy_full_scale_set(&reg_ctx, LSM6DSV16X_2000dps) != LSM6DSV16X_OK) {
if (Set_G_FS(2000) != LSM6DSV16X_OK) {
return LSM6DSV16X_ERROR;
}

Expand Down

0 comments on commit 13db7be

Please sign in to comment.