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

Commit e62d93b3 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

Change-Id: I6c916c9370660a04d8f52579907175e211266502
parents 424325f9 1e911b7d
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());