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

Commit abd66279 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "healthd: BatteryMonitor: Fix compiler warning"

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

    unsigned int i;
    double MaxPower = 0;

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