Merge "BatteryMonitor: support battery health INCONSISTENT from health status"
This commit is contained in:
commit
76323f64be
2 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ class BatteryMonitor {
|
|||
BH_NEEDS_REPLACEMENT,
|
||||
BH_FAILED,
|
||||
BH_NOT_AVAILABLE,
|
||||
BH_INCONSISTENT,
|
||||
};
|
||||
|
||||
BatteryMonitor();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue