Closed neutronstriker closed 1 year ago
Thanks, i will fix it in next release
W dniu 06/14/2015 o 07:56 PM, N Srinivas pisze:
Hi,
I just changed uint16_t value = voltage * 25000; to this uint16_t value = voltage / 0.0000025; Because it was setting alert incorrectly for shuntOverlimit() After this change it works fine.
And thank you for your time and effort for making this library.
Regards Neutron
You can view, comment on, or merge this pull request online at:
https://github.com/jarzebski/Arduino-INA226/pull/1
Commit Summary
setShuntVoltageLimit() has been modified
File Changes
M INA226.cpp https://github.com/jarzebski/Arduino-INA226/pull/1/files#diff-0 (2)
Patch Links:
- https://github.com/jarzebski/Arduino-INA226/pull/1.patch
- https://github.com/jarzebski/Arduino-INA226/pull/1.diff
— Reply to this email directly or view it on GitHub https://github.com/jarzebski/Arduino-INA226/pull/1.
Hi,
I just changed uint16_t value = voltage * 25000; to this uint16_t value = voltage / 0.0000025; Because it was setting alert incorrectly for shuntOverlimit() After this change it works fine.
And thank you for your time and effort for making this library.
Regards Neutron