[hackers] [slstatus] battery_state: Unify unknown state with "?" symbol || Aaron Marcher

From: <git_AT_suckless.org>
Date: Wed, 2 May 2018 08:16:55 +0200 (CEST)

commit 2bd581a47b8e355a398b87bb82fdcff547b8073a
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Wed May 2 08:16:21 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Wed May 2 08:16:21 2018 +0200

    battery_state: Unify unknown state with "?" symbol

diff --git a/components/battery.c b/components/battery.c
index 86ea2a1..e997e4c 100644
--- a/components/battery.c
+++ b/components/battery.c
_AT_@ -30,7 +30,6 @@
                         { "Charging", "+" },
                         { "Discharging", "-" },
                         { "Full", "=" },
- { "Unknown", "/" },
                 };
                 size_t i;
                 char path[PATH_MAX], state[12];
_AT_@ -89,7 +88,6 @@
                 } map[] = {
                         { APM_AC_ON, "+" },
                         { APM_AC_OFF, "-" },
- { APM_AC_UNKNOWN, "/" },
                 };
 
                 fd = open("/dev/apm", O_RDONLY);
Received on Wed May 02 2018 - 08:16:55 CEST

This archive was generated by hypermail 2.3.0 : Wed May 02 2018 - 08:24:30 CEST