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

This commit is contained in:
Treehugger Robot 2023-05-26 02:33:22 +00:00 committed by Gerrit Code Review
commit 76323f64be
2 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -63,6 +63,7 @@ class BatteryMonitor {
BH_NEEDS_REPLACEMENT,
BH_FAILED,
BH_NOT_AVAILABLE,
BH_INCONSISTENT,
};
BatteryMonitor();