jarzebski / Arduino-INA226

INA226 Bi-directional Current/Power Monitor Arduino Librar
MIT License
48 stars 46 forks source link

Update INA226.cpp #7

Closed board707 closed 1 year ago

board707 commented 5 years ago

Hi,

I just changed line currentLSB = (uint16_t)(minimumLSB 100000000); to currentLSB = (uint32_t)(minimumLSB 100000000);

Because it was calculated incorrectly for estimated current > 20 amps I tested it and code worked correct.

And thank you for the library.

WBR Dmitry