flav1972 / ArduinoINA219

An Arduino library for the INA219 I2C current monitor
17 stars 16 forks source link

Support utilizing reset to ensure communication with I2C device #16

Closed bobwolff68 closed 3 years ago

bobwolff68 commented 3 years ago

begin() now calls a modified reset() which checks to see if the transmission is successful to the target address and returns false if it was a failure.

bobwolff68 commented 3 years ago

FYI - if it wasn't clear - I'm happy to make the changes on my side and re-request a pull if that's best. I just didn't want to jump the gun and make things harder or messy if I'm not seeing the best way to do this.

flav1972 commented 3 years ago

OK. Thanks !