Quote:
Originally Posted by [ACL]
thanks muz. can you post this on the project page as an issue. I dont want to loose track of all your work. I'll patch it up for next release.
|
Issue 16
I notice buffer->charging_source equal 0 or 2, never 1 whether plug USB with PC or AC.
Code:
struct battery_info_reply {
u32 batt_id; /* Battery ID from ADC */
u32 batt_vol; /* Battery voltage from ADC */
u32 batt_temp; /* Battery Temperature (C)corrected value from formula and ADC */
s32 batt_current; /* Battery current from ADC */
u32 level; /* formula */
u32 charging_source; /* 0: no cable, 1:usb, 2:AC */
u32 charging_enabled; /* 0: Disable, 1: Enable */
u32 full_bat; /* Full capacity of battery (mAh) */
u32 batt_tempRAW; /* Battery Temperature (C) from formula and ADC */
};