From 760d9ce1d8a334800fd138c019a4f08e4a56f990 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 13 Mar 2013 13:28:06 +0100 Subject: [PATCH 1/1] Claim interface after detaching it from a possible kernel driver This avoids error messages like: usbfs: process 24665 (myprogram) did not claim interface 1 before use See also: http://stackoverflow.com/questions/11088691 --- src/visomat-data-downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visomat-data-downloader.c b/src/visomat-data-downloader.c index 0eca9c1..08a752a 100644 --- a/src/visomat-data-downloader.c +++ b/src/visomat-data-downloader.c @@ -315,8 +315,8 @@ int main(void) } libusb_set_configuration(dev, 1); - libusb_claim_interface(dev, 1); libusb_detach_kernel_driver(dev, 1); + libusb_claim_interface(dev, 1); ret = visomat_get_datetime(dev); if (ret < 0) -- 2.1.4