Skip to content

Commit

Permalink
fixup! fixup! drivers/lsm6dsxx: Allow non-specific variant
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Mar 26, 2024
1 parent 411a0b5 commit 8613bec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/lsm6dsxx/lsm6dsxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ int lsm6dsxx_init(lsm6dsxx_t *dev, const lsm6dsxx_params_t *params)
return -LSM6DSXX_ERROR_DEV;
}

if (tmp != LSM6DS33_WHO_AM_I && tmp != LSM6DSL_WHO_AM_I) {
DEBUG("[ERROR] lsm6dsxx_init: WHO_AM_I\n");
return -LSM6DSXX_ERROR_DEV;
}

/* Set acc odr / full scale */
tmp = (dev->params.acc_odr << LSM6DSXX_CTRL_ODR_SHIFT) |
(dev->params.acc_fs << LSM6DSXX_CTRL_FS_SHIFT);
Expand Down

0 comments on commit 8613bec

Please sign in to comment.