Skip to content

Commit 159af65

Browse files
author
Owen
authored
Make changes to supplied settings visible via pointer - .h
User can now provide a pointer to their own SensorSettings structure. If it is supplied it is first filled out to be identical to the desired settings, and then when default cases are selected (because other cases do not match the switch value) the appropriate field is updated in the output SensorSettings. Then the user can double check that SensorSettings matches the settings that they intended. If not then that sub-setting was not a valid choice.
1 parent 32aca21 commit 159af65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFunLSM6DS3.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class LSM6DS3 : public LSM6DS3Core
149149
~LSM6DS3() = default;
150150

151151
//Call to apply SensorSettings
152-
status_t begin(void);
152+
status_t begin(SensorSettings* pActualSettings = NULL);
153153

154154
//Returns the raw bits from the sensor cast as 16-bit signed integers
155155
int16_t readRawAccelX( void );

0 commit comments

Comments
 (0)