Fix bad data, especially on newer BM1000's
Sometimes bad data was passed back in .value
, especially when using newer versions of the BM1000. Also, stale data was returned when sampling infrequently. Now, get the latest values when accessing .value
.
Thanks to adafruitguy in the Adafruit Forums for discovering the issue.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ble-berrymed-pulse-oximeter
.
Read the docs for info on how to use it.