battery_state: Unify unknown state with "?" symbol
Aaron Marcher me@drkhsh.at
Wed, 02 May 2018 08:16:21 +0200
1 files changed,
0 insertions(+),
2 deletions(-)
jump to
M
components/battery.c
→
components/battery.c
@@ -30,7 +30,6 @@ } map[] = {
{ "Charging", "+" }, { "Discharging", "-" }, { "Full", "=" }, - { "Unknown", "/" }, }; size_t i; char path[PATH_MAX], state[12];@@ -89,7 +88,6 @@ char *symbol;
} map[] = { { APM_AC_ON, "+" }, { APM_AC_OFF, "-" }, - { APM_AC_UNKNOWN, "/" }, }; fd = open("/dev/apm", O_RDONLY);