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

Commit 629a26b6 authored by David Anderson's avatar David Anderson
Browse files

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
parent d5ed26a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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},
    };