View Single Post
  #874 (permalink)  
Old 01-05-2012, 03:19 AM
[ACL]'s Avatar
[ACL]
VIP Member
Offline
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
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 */
};
Hey muz. i pushed the hack for the battery. Also other fixes that i wont release until the next full build. You can test if the above still happens if you have time.

Also i think we are missing the gpio for ac detect. Maybe why its always seeing it as usb. Not sure 100%
__________________
Reply With Quote