healthd: perform periodic chores when awake and on battery power

Monitor battery/charging status at normal awake rate when on battery
power.

Bug: 10650797
Change-Id: I914d24af4963ab9d52b03c0a2615ad653ced9b12
This commit is contained in:
Todd Poynor 2013-09-09 14:30:55 -07:00
parent f34861346d
commit ff9ec2d999

View file

@ -249,6 +249,9 @@ static void healthd_mainloop(void) {
if (events[n].data.ptr)
(*(void (*)())events[n].data.ptr)();
}
if (!nevents)
periodic_chores();
}
return;