Reverted my latest tweaks to the battery driver. I misunderstood what the code was doing.

At 99% it will still supply power to the battery but registers as "full", which I can only
assume causes a trickle charge.
This commit is contained in:
Jon Benson 2010-10-19 12:32:37 +11:00
parent 56aad1fd46
commit 1c8a054c33

View File

@ -552,7 +552,7 @@ static int battery_adjust_charge_state(struct htcleo_device_info *di)
{
di->status.battery_full = 0;
}*/
if(di->status.percentage >= 100)
if(di->status.percentage >= 99)
{
di->status.battery_full = 1;
charge_mode = CHARGE_BATT_DISABLE;