Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a79592e authored by Yueyao Zhu's avatar Yueyao Zhu Committed by android-build-merger
Browse files

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

am: 5dd87c4e

Change-Id: I6fa7b04fc8f274527074f323afc586239e8d478d
parents b0350407 5dd87c4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 },
    };