diff options
author | Richard Hughes <richard@hughsie.com> | 2012-05-30 16:16:50 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2012-05-30 16:17:01 +0100 |
commit | a75501f9d12da32690a91410b0e4d1ed020e01f6 (patch) | |
tree | 1d6b4ab20858dea68d1d9063ba676c0c829fb594 | |
parent | 944118a879bf8c9cdb6bf3293d4d45e06ad41ef0 (diff) | |
download | upower-a75501f9d12da32690a91410b0e4d1ed020e01f6.tar.gz |
linux: Treat the battery state 'not charging' as PENDING_CHARGE
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=826215
-rw-r--r-- | src/linux/up-device-supply.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 2afbac5..48f5156 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -620,6 +620,8 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) state = UP_DEVICE_STATE_EMPTY; else if (g_ascii_strcasecmp (status, "unknown") == 0) state = UP_DEVICE_STATE_UNKNOWN; + else if (g_ascii_strcasecmp (status, "not charging") == 0) + state = UP_DEVICE_STATE_PENDING_CHARGE; else { g_warning ("unknown status string: %s", status); state = UP_DEVICE_STATE_UNKNOWN; |