module/battery: doh! fix spelling of ‘status’

This commit is contained in:
Daniel Eklöf 2020-11-14 23:03:11 +01:00
parent c0c5df0f6a
commit cadf227bc6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;