mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 03:38:05 +02:00
linux: Treat the battery state 'not charging' as PENDING_CHARGE
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=826215
This commit is contained in:
parent
944118a879
commit
a75501f9d1
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue