From 4374a267bec655e704faaa379d1ed62eca90b71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 26 Oct 2021 10:58:59 +0200 Subject: Linux: restore battery state with numbered AC's --- linux/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Platform.c b/linux/Platform.c index d48c5700..e7f3d8f0 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -765,7 +765,7 @@ static void Platform_Battery_getSysData(double* percent, ACPresence* isOnAC) { if (!now && full && !isnan(capacityLevel)) totalRemain += capacityLevel * fullCharge; - } else if (String_eq(entryName, "AC")) { + } else if (String_startsWith(entryName, "AC")) { char buffer[2] = {0}; if (*isOnAC != AC_ERROR) continue; -- cgit v1.2.3