healthd: Add handling for "Calibration required" battery health.

This string was added to sysfs fairly recently. It indicates that
re-calibration is needed, which we've already added an indicator for via
the INCONSISTENT health status.

Bug: 300585313
Test: m
Change-Id: I9594523e509ad94480ad13f489eee6d1c0a75e7e
This commit is contained in:
David Anderson 2023-12-11 15:25:13 -08:00
parent d5ed26a45a
commit 629a26b6c5

View file

@ -220,6 +220,7 @@ BatteryHealth getBatteryHealth(const char* status) {
{"Warm", BatteryHealth::GOOD},
{"Cool", BatteryHealth::GOOD},
{"Hot", BatteryHealth::OVERHEAT},
{"Calibration required", BatteryHealth::INCONSISTENT},
{NULL, BatteryHealth::UNKNOWN},
};