Eeze: And only send event for present batteries
The property POWER_SUPPLY_PRESENT must not only be there, but also have a true value. SVN revision: 63228
This commit is contained in:
parent
2ee03004d6
commit
e8b0436197
|
@ -227,7 +227,7 @@ _get_syspath_from_watch(void *data,
|
|||
goto error;
|
||||
#endif
|
||||
test = udev_device_get_property_value(device, "POWER_SUPPLY_PRESENT");
|
||||
if (!test) goto error;
|
||||
if ((!test) || (strcmp(test, "1"))) goto error;
|
||||
break;
|
||||
|
||||
case EEZE_UDEV_TYPE_NET:
|
||||
|
|
Loading…
Reference in New Issue