From c66c11a2b4c341e83464ce20206f61ce70045843 Mon Sep 17 00:00:00 2001 From: Yuki Joou Date: Thu, 13 Jul 2023 13:54:49 +0200 Subject: [PATCH] usb_device_detection: Replaced deprecated libusb function --- usb_device_detection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb_device_detection.c b/usb_device_detection.c index d466840..4da9dae 100644 --- a/usb_device_detection.c +++ b/usb_device_detection.c @@ -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;