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:
parent
f34861346d
commit
ff9ec2d999
1 changed files with 3 additions and 0 deletions
|
@ -249,6 +249,9 @@ static void healthd_mainloop(void) {
|
|||
if (events[n].data.ptr)
|
||||
(*(void (*)())events[n].data.ptr)();
|
||||
}
|
||||
|
||||
if (!nevents)
|
||||
periodic_chores();
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue