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

Commit 2ae21f6a authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "healthd: BatteryMonitor: Fix compiler warning" am: abd66279 am: 1e911b7d

am: e62d93b3

Change-Id: I863db2eba349aa9625c00dec0ae5e91f266d371a
parents 4760e124 e62d93b3
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -240,10 +240,9 @@ bool BatteryMonitor::update(void) {
    if (readFromFile(mHealthdConfig->batteryTechnologyPath, &buf) > 0)
    if (readFromFile(mHealthdConfig->batteryTechnologyPath, &buf) > 0)
        props.batteryTechnology = String8(buf.c_str());
        props.batteryTechnology = String8(buf.c_str());


    unsigned int i;
    double MaxPower = 0;
    double MaxPower = 0;


    for (i = 0; i < mChargerNames.size(); i++) {
    for (size_t i = 0; i < mChargerNames.size(); i++) {
        String8 path;
        String8 path;
        path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH,
        path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH,
                          mChargerNames[i].string());
                          mChargerNames[i].string());