BlueRobotics_MS5837_Library icon indicating copy to clipboard operation
BlueRobotics_MS5837_Library copied to clipboard

Add error checks for all I2C reads and writes and return error values

Open waynepiekarski opened this issue 3 years ago • 1 comments

Currently if the device is not connected or if any of the I2C operations fail, the library will receive all zeros, continue with the calculations, and then return incorrect values. Previously it was not possible to return an error code from read() either, so this has been added as well.

waynepiekarski avatar May 06 '21 04:05 waynepiekarski

@patrickelectric I was hoping you could review this code which fixes some bugs in the sensor error handling

waynepiekarski avatar Jun 22 '22 06:06 waynepiekarski