From cadf227bc6a9ebe759e961ccbc832d506c4bdc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 14 Nov 2020 23:03:11 +0100 Subject: [PATCH] =?UTF-8?q?module/battery:=20doh!=20fix=20spelling=20of=20?= =?UTF-8?q?=E2=80=98status=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/battery.c b/modules/battery.c index fda099b..4759a99 100644 --- a/modules/battery.c +++ b/modules/battery.c @@ -297,7 +297,7 @@ update_status(struct module *mod, int capacity_fd, int energy_fd, int power_fd, state = STATE_CHARGING; else if (strcmp(status, "Discharging") == 0) state = STATE_DISCHARGING; - else if (strcmp(state, "Not charging") == 0) + else if (strcmp(status, "Not charging") == 0) state = STATE_DISCHARGING; else if (strcmp(status, "Unknown") == 0) state = STATE_DISCHARGING;