lucadentella/ArduinoLib_MAX17043

Calculation of Voltage wrong

Opened this issue · 0 comments

Calculation of the cell voltage is wrong. Change float MAX17043::getVCell() in MAX17043.cpp:

from

return map(value, 0x000, 0xFFF, 0, 50000) / 10000.0;
//return value * 0.00125;

to

//return map(value, 0x000, 0xFFF, 0, 50000) / 10000.0;
return value * 0.00125;

This results in the correct values (verified with multimeter).