Merge "healthd: add battery health status values from JEITA spec"
This commit is contained in:
commit
5dd87c4ef6
1 changed files with 4 additions and 0 deletions
|
|
@ -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 },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue