[Bug 1182] New: Charging current measurement is incorrect (fix)

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Tue Jan 15 20:03:20 CET 2008


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1182

           Summary: Charging current measurement is incorrect (fix)
           Product: OpenMoko
           Version: 2007.2
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: kernel
        AssignedTo: willie_chen at openmoko.com
        ReportedBy: andrew.paulsen at packetdigital.com
                CC: buglog at lists.openmoko.org


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



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list