summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux/up-device-supply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 4a4b431..ef40e06 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -720,7 +720,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
/* the battery isn't charging or discharging, it's just
* sitting there half full doing nothing: try to guess a state */
- if (state == UP_DEVICE_STATE_UNKNOWN) {
+ if (state == UP_DEVICE_STATE_UNKNOWN && supply->priv->is_power_supply) {
daemon = up_device_get_daemon (device);
/* If we have any online AC, assume charging, otherwise