Check right variable

SVN revision: 51719
This commit is contained in:
Sebastian Dransfeld 2010-08-29 10:56:55 +00:00
parent 936d65abc6
commit cf7e7abbcb
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ _battery_udev_start(void)
if (!battery_config->batwatch)
battery_config->batwatch = eeze_udev_watch_add(EEZE_UDEV_TYPE_POWER_BAT, EEZE_UDEV_EVENT_NONE, _battery_udev_event_battery, NULL);
if (!battery_config->batwatch)
if (!battery_config->acwatch)
battery_config->acwatch = eeze_udev_watch_add(EEZE_UDEV_TYPE_POWER_AC, EEZE_UDEV_EVENT_NONE, _battery_udev_event_ac, NULL);
init_time = ecore_time_get();