1
0
Fork 0

battery_state: Unify unknown state with "?" symbol

This commit is contained in:
Aaron Marcher 2018-05-02 08:16:21 +02:00
parent f5f3808f36
commit 2bd581a47b

View file

@ -30,7 +30,6 @@
{ "Charging", "+" },
{ "Discharging", "-" },
{ "Full", "=" },
{ "Unknown", "/" },
};
size_t i;
char path[PATH_MAX], state[12];
@ -89,7 +88,6 @@
} map[] = {
{ APM_AC_ON, "+" },
{ APM_AC_OFF, "-" },
{ APM_AC_UNKNOWN, "/" },
};
fd = open("/dev/apm", O_RDONLY);