diff --git a/battery.c b/battery.c index 7f3720c..2732347 100644 --- a/battery.c +++ b/battery.c @@ -43,6 +43,8 @@ void battery_state(int *nbats, int bat[], State state[]) { state[i] = DISCHARGING; else if (!strcmp(status, "Charging\n")) state[i] = CHARGING; + else + state[i] = UNKNOWN; // next i++; -- libgit2 0.21.2