From 503932ea91300988dad1b28ae33adfef65a0fdaf Mon Sep 17 00:00:00 2001 From: caternuson Date: Mon, 15 Jan 2024 08:57:05 -0800 Subject: [PATCH] pr14 clean up --- Adafruit_LSM9DS1.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Adafruit_LSM9DS1.h b/Adafruit_LSM9DS1.h index 009006b..5c3a75f 100644 --- a/Adafruit_LSM9DS1.h +++ b/Adafruit_LSM9DS1.h @@ -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), @@ -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);