Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro"
This commit is contained in:
commit
652b89bd0a
1 changed files with 1 additions and 3 deletions
|
@ -40,8 +40,6 @@
|
|||
using namespace android;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
#define POWER_SUPPLY_SUBSYSTEM "power_supply"
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
namespace health {
|
||||
|
@ -143,7 +141,7 @@ void HealthLoop::UeventEvent(uint32_t /*epevents*/) {
|
|||
cp = msg;
|
||||
|
||||
while (*cp) {
|
||||
if (!strcmp(cp, "SUBSYSTEM=" POWER_SUPPLY_SUBSYSTEM)) {
|
||||
if (!strcmp(cp, "SUBSYSTEM=power_supply")) {
|
||||
ScheduleBatteryUpdate();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue