Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 652b89bd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro"

parents 4673d5ab ac9f9cb3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
        }