diff options
-rw-r--r-- | src/linux/up-device-supply.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 000a00f..1644665 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -669,7 +669,6 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply, } state = up_device_supply_get_state (native_path); - *out_state = state; /* this is the new value in uW */ energy_rate = fabs (sysfs_get_double (native_path, "power_now") / 1000000.0); @@ -833,6 +832,8 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply, supply->priv->energy_old_first = 0; } + *out_state = state; + g_object_set (device, "energy", energy, "energy-full", energy_full, |