hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Tue Jan 29 07:45:21 PST 2008


 hald/linux/device.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f1d2c7c0fb89f84db2649eca7dc554c7b6f80cdc
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Tue Jan 29 16:44:27 2008 +0100

    fixed power_supply_refresh() for batteries
    
    Fixed power_supply_refresh() for the battery case. No need to
    call refresh_battery_slow() on refresh, refresh_battery_fast()
    should be enough since the info updated by refresh_battery_slow()
    never change if the device is present.

diff --git a/hald/linux/device.c b/hald/linux/device.c
index 5615b43..cc153d5 100644
--- a/hald/linux/device.c
+++ b/hald/linux/device.c
@@ -3223,7 +3223,7 @@ power_supply_refresh (HalDevice *d)
 		device_property_atomic_update_end ();
 	} else if (strcmp (type, "battery") == 0) {
 		device_property_atomic_update_begin ();
-		refresh_battery_slow (d);
+		refresh_battery_fast (d);
 		device_property_atomic_update_end ();
 	} else {
 		HAL_WARNING (("Could not recognise power_supply type!"));


More information about the hal-commit mailing list