diff --git a/lib/inputdev/HIDDeviceUdev.cpp b/lib/inputdev/HIDDeviceUdev.cpp index 0ec291b..39aa468 100644 --- a/lib/inputdev/HIDDeviceUdev.cpp +++ b/lib/inputdev/HIDDeviceUdev.cpp @@ -45,7 +45,7 @@ class HIDDeviceUdev final : public IHIDDevice { usbdevfs_bulktransfer xfer = { - m_usbIntfOutPipe | USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE, + m_usbIntfOutPipe | USB_DIR_OUT, (unsigned)length, 30, (void*)data diff --git a/lib/inputdev/HIDListenerUdev.cpp b/lib/inputdev/HIDListenerUdev.cpp index fff7a2d..e42a641 100644 --- a/lib/inputdev/HIDListenerUdev.cpp +++ b/lib/inputdev/HIDListenerUdev.cpp @@ -49,7 +49,7 @@ class HIDListenerUdev final : public IHIDListener int vid = 0, pid = 0; udev_list_entry* attrs = udev_device_get_properties_list_entry(device); -#if 0 +#if 1 udev_list_entry* att = nullptr; udev_list_entry_foreach(att, attrs) {