From 7ad151d0237b578bbf705b8f48e8f3538c2b0d44 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Tue, 30 Jan 2024 18:13:27 +0000 Subject: [PATCH] add UNKNOWN to linux version --- battery.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) 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