summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-10-26 10:58:59 +0200
committerChristian Göttsche <cgzones@googlemail.com>2021-10-26 10:58:59 +0200
commit4374a267bec655e704faaa379d1ed62eca90b71a (patch)
tree68b9ec86ec9309db87fbdebf1259816db62266e8
parent3e70de64b3e734411970a11fdcfda361cc6deb53 (diff)
Linux: restore battery state with numbered AC's
-rw-r--r--linux/Platform.c2
1 files changed, 1 insertions, 1 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy