usb_device_detection: Replaced deprecated libusb function

This commit is contained in:
Yuki Joou 2023-07-13 13:54:49 +02:00
parent ca74d51f05
commit c66c11a2b4

View file

@ -28,7 +28,7 @@ static int libusb_event_handler(void* data)
while (!detector->event_handler_should_exit) {
thrd_sleep(&(struct timespec){.tv_sec = 1}, NULL);
libusb_handle_events(detector->usb_context);
libusb_handle_events_completed(detector->usb_context, NULL);
}
return 0;