From: Antonio Ospite Date: Wed, 13 Mar 2013 12:28:06 +0000 (+0100) Subject: Claim interface after detaching it from a possible kernel driver X-Git-Url: https://git.ao2.it/visomat-utils.git/commitdiff_plain/760d9ce1d8a334800fd138c019a4f08e4a56f990?ds=inline 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 --- 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)