RobTillaart / INA226

Arduino library for INA226 power sensor
MIT License
54 stars 14 forks source link

Changed multiplication order to avoid overflow int16 #42

Closed ChrisRed255 closed 6 months ago

RobTillaart commented 6 months ago

Thanks, Had a fix ready too, I also added ( ) to enforce the compiler not to optimize the int multiplication first.

RobTillaart commented 6 months ago

Solved with #43 (in similar way)