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

Commit e4b3b7b4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "BatteryMonitor: support battery health INCONSISTENT from health status" into udc-dev

parents 222aaead 4a7d9840
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -244,6 +244,8 @@ BatteryHealth getBatteryHealthStatus(int status) {
        value = BatteryHealth::UNSPECIFIED_FAILURE;
    else if (status == BatteryMonitor::BH_NOT_AVAILABLE)
        value = BatteryHealth::NOT_AVAILABLE;
    else if (status == BatteryMonitor::BH_INCONSISTENT)
        value = BatteryHealth::INCONSISTENT;
    else
        value = BatteryHealth::UNKNOWN;

+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ class BatteryMonitor {
        BH_NEEDS_REPLACEMENT,
        BH_FAILED,
        BH_NOT_AVAILABLE,
        BH_INCONSISTENT,
    };

    BatteryMonitor();