Ticket #1182 (closed defect: fixed)
Charging current measurement is incorrect (fix)
|Reported by:||andrew.paulsen@…||Owned by:||willie_chen@…|
|Blocking:||Estimated Completion (week):|
There are multiple problems with the charging current measurement that I have
fixed in this patch.
- Least significant bits of ADCIN1 were not shifted correctly
- A 6V reference voltage was assumed, but a 2.4V reference is actually used
- Math could result in negative values, but unsigned types were used
- Explicit type casting was added to the calculation to correct a possible overflow
Note: See TracTickets for help on using tickets.