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

Commit 76323f64 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "BatteryMonitor: support battery health INCONSISTENT from health status"

parents 059954a6 8231c3fe
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();