Skip to content

Commit 6434d15

Browse files
committed
resolved freezing device by reattaching them to kernel
1 parent a6a622f commit 6434d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libusb/hid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ void HID_API_EXPORT hid_close(hid_device *dev)
12501250

12511251
/* release the interface */
12521252
libusb_release_interface(dev->device_handle, dev->interface);
1253+
libusb_attach_kernel_driver(dev->device_handle, dev->interface);
12531254

12541255
/* Close the handle */
12551256
libusb_close(dev->device_handle);

0 commit comments

Comments
 (0)