Skip to content

Commit

Permalink
Merge pull request #22 from caternuson/pr14_tweak
Browse files Browse the repository at this point in the history
PR14 Clean Up
  • Loading branch information
caternuson authored Jan 15, 2024
2 parents 6937bf1 + 503932e commit d524860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Adafruit_LSM9DS1.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ class Adafruit_LSM9DS1 {

/**! Enumeration for accelerometer data rate 10 - 952 Hz */
typedef enum {
LSM9DS1_ACCELDATARATE_POWERDOWN = (0b0000 << 4),

LSM9DS1_ACCELDATARATE_POWERDOWN = (0b0000 << 5),
LSM9DS1_ACCELDATARATE_10HZ = (0b001 << 5),
LSM9DS1_ACCELDATARATE_50HZ = (0b010 << 5),
LSM9DS1_ACCELDATARATE_119HZ = (0b011 << 5),
Expand Down Expand Up @@ -159,7 +158,8 @@ class Adafruit_LSM9DS1 {
void readMag(void);
void readTemp(void);

void setupAccel(lsm9ds1AccelRange_t range, lsm9ds1AccelDataRate_t rate);
void setupAccel(lsm9ds1AccelRange_t range,
lsm9ds1AccelDataRate_t rate = LSM9DS1_ACCELDATARATE_10HZ);
void setupMag(lsm9ds1MagGain_t gain);
void setupGyro(lsm9ds1GyroScale_t scale);

Expand Down

0 comments on commit d524860

Please sign in to comment.