diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index f68d65a54..bd7955a7f 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -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; diff --git a/healthd/include/healthd/BatteryMonitor.h b/healthd/include/healthd/BatteryMonitor.h index a4c013b86..e9998ba7a 100644 --- a/healthd/include/healthd/BatteryMonitor.h +++ b/healthd/include/healthd/BatteryMonitor.h @@ -63,6 +63,7 @@ class BatteryMonitor { BH_NEEDS_REPLACEMENT, BH_FAILED, BH_NOT_AVAILABLE, + BH_INCONSISTENT, }; BatteryMonitor();