usb_device_detection: Replaced deprecated libusb function
This commit is contained in:
parent
ca74d51f05
commit
c66c11a2b4
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ static int libusb_event_handler(void* data)
|
||||||
|
|
||||||
while (!detector->event_handler_should_exit) {
|
while (!detector->event_handler_should_exit) {
|
||||||
thrd_sleep(&(struct timespec){.tv_sec = 1}, NULL);
|
thrd_sleep(&(struct timespec){.tv_sec = 1}, NULL);
|
||||||
libusb_handle_events(detector->usb_context);
|
libusb_handle_events_completed(detector->usb_context, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue