mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro" am: 652b89bd0a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1864853 Change-Id: I2c45525ca90771643cee2396f0c8e6a0c2768be0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user