adafruit / Adafruit_LSM6DS

Arduino library for LSM6DS
Other
50 stars 41 forks source link

Propagate the read status to the getEvent calls #27

Open jerabaul29 opened 3 years ago

jerabaul29 commented 3 years ago

The aim of this pull request is to implement the propagation of the read status through the getEvent calls, as is discussed in #26 . This allows users to check if the value provided by a getEvents is valid or is invalid, and to avoid feeding corrupted data further the pipes.

Test: this has been tested on a Sparkfun Artemis MCU based board against the Adafruit ISM330DHCX + LIS3MDL FeatherWing - High Precision 9-DoF IMU, PRODUCT ID: 4569. All compiling, no issues. I do not have more breakouts to test this myself.

If you have any comments please let me know :) .