forked from enlightenment/efl
parent
d4eb19a520
commit
830db2243e
|
@ -125,6 +125,7 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
#endif
|
#endif
|
||||||
if (!(test = (udev_device_get_property_value(device, "POWER_SUPPLY_TYPE"))) ||
|
if (!(test = (udev_device_get_property_value(device, "POWER_SUPPLY_TYPE"))) ||
|
||||||
(strcmp("Mains", test)))
|
(strcmp("Mains", test)))
|
||||||
|
goto error;
|
||||||
break;
|
break;
|
||||||
case EEZE_UDEV_TYPE_POWER_BAT:
|
case EEZE_UDEV_TYPE_POWER_BAT:
|
||||||
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
#ifdef OLD_UDEV_RRRRRRRRRRRRRR
|
||||||
|
@ -133,6 +134,7 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
#endif
|
#endif
|
||||||
if (!(test = (udev_device_get_property_value(device, "POWER_SUPPLY_TYPE"))) ||
|
if (!(test = (udev_device_get_property_value(device, "POWER_SUPPLY_TYPE"))) ||
|
||||||
(strcmp("Battery", test)))
|
(strcmp("Battery", test)))
|
||||||
|
goto error;
|
||||||
break;
|
break;
|
||||||
/*
|
/*
|
||||||
case EEZE_UDEV_TYPE_ANDROID:
|
case EEZE_UDEV_TYPE_ANDROID:
|
||||||
|
|
Loading…
Reference in New Issue