diff options
author | Richard Hughes <richard@hughsie.com> | 2009-06-14 14:17:15 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2009-06-14 14:17:15 +0100 |
commit | 933c09aa66dc6157d248e49e2b031f38872703a5 (patch) | |
tree | 27cc540ad3f437ceb00b845cb2bdee70f73ec396 | |
parent | 57615b36390d001abaed349fb9d750cb3e3acaad (diff) |
For power_supply, unknown is a valid state from the kernel
-rw-r--r-- | src/dkp-supply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dkp-supply.c b/src/dkp-supply.c index 0527aaa..e68213c 100644 --- a/src/dkp-supply.c +++ b/src/dkp-supply.c @@ -406,6 +406,8 @@ dkp_supply_refresh_battery (DkpSupply *supply) state = DKP_DEVICE_STATE_FULLY_CHARGED; else if (strcasecmp (status, "empty") == 0) state = DKP_DEVICE_STATE_EMPTY; + else if (strcasecmp (status, "unknown") == 0) + state = DKP_DEVICE_STATE_UNKNOWN; else { egg_warning ("unknown status string: %s", status); state = DKP_DEVICE_STATE_UNKNOWN; |