flav1972 / ArduinoINA219

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

busVoltageRaw() overflow #14

Open mflorian24 opened 3 years ago

mflorian24 commented 3 years ago

on input voltages above ~+12V, the returned value for raw voltage is negative. In the files INA219.h and INA219.cpp you have to change int16_t busVoltageRaw(); to int32_t busVoltageRaw();

flav1972 commented 3 years ago

accepted pull request. new version 1.0.5. let me know it it is ok