Zanduino / INA

Combined Arduino library for reading multiple INA2xx power monitor devices
GNU General Public License v3.0
158 stars 41 forks source link

Function "getBusMicroWatts" limited to +/- 2147 Watts #56

Closed SV-Zanshin closed 4 years ago

SV-Zanshin commented 4 years ago

The return datatype for this function is a 32-bit integer in microWatts; hence the limitation. Changing the return datatype to a 64-bit integer will allow sufficient Watts to be returned by the function.

This was raised in issue #54, but that issue was closed without resolving this problem, hence the new issue for tracking purposes.