projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
90e3344
)
Claim interface after detaching it from a possible kernel driver
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 13 Mar 2013 12:28:06 +0000
(13:28 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 13 Mar 2013 12:28:06 +0000
(13:28 +0100)
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
patch
|
blob
|
history
diff --git
a/src/visomat-data-downloader.c
b/src/visomat-data-downloader.c
index
0eca9c1
..
08a752a
100644
(file)
--- 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)