battery_state: Unify unknown state with "?" symbol
This commit is contained in:
parent
f5f3808f36
commit
2bd581a47b
1 changed files with 0 additions and 2 deletions
|
@ -30,7 +30,6 @@
|
||||||
{ "Charging", "+" },
|
{ "Charging", "+" },
|
||||||
{ "Discharging", "-" },
|
{ "Discharging", "-" },
|
||||||
{ "Full", "=" },
|
{ "Full", "=" },
|
||||||
{ "Unknown", "/" },
|
|
||||||
};
|
};
|
||||||
size_t i;
|
size_t i;
|
||||||
char path[PATH_MAX], state[12];
|
char path[PATH_MAX], state[12];
|
||||||
|
@ -89,7 +88,6 @@
|
||||||
} map[] = {
|
} map[] = {
|
||||||
{ APM_AC_ON, "+" },
|
{ APM_AC_ON, "+" },
|
||||||
{ APM_AC_OFF, "-" },
|
{ APM_AC_OFF, "-" },
|
||||||
{ APM_AC_UNKNOWN, "/" },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fd = open("/dev/apm", O_RDONLY);
|
fd = open("/dev/apm", O_RDONLY);
|
||||||
|
|
Loading…
Reference in a new issue