Merge "healthd: add battery health status values from JEITA spec"

This commit is contained in:
Treehugger Robot 2017-06-21 19:11:44 +00:00 committed by Gerrit Code Review
commit 5dd87c4ef6

View file

@ -116,6 +116,10 @@ int BatteryMonitor::getBatteryHealth(const char* status) {
{ "Over voltage", BATTERY_HEALTH_OVER_VOLTAGE },
{ "Unspecified failure", BATTERY_HEALTH_UNSPECIFIED_FAILURE },
{ "Cold", BATTERY_HEALTH_COLD },
// battery health values from JEITA spec
{ "Warm", BATTERY_HEALTH_GOOD },
{ "Cool", BATTERY_HEALTH_GOOD },
{ "Hot", BATTERY_HEALTH_OVERHEAT },
{ NULL, 0 },
};