include libusb_kernel_driver_active
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
748b087cbf
commit
5d8c9c94c3
1 changed files with 3 additions and 3 deletions
|
@ -78,9 +78,9 @@ int configure_device(){
|
||||||
#endif
|
#endif
|
||||||
// Check if device used by kernel drivers already
|
// Check if device used by kernel drivers already
|
||||||
ret = libusb_kernel_driver_active(dev_handle, 1);
|
ret = libusb_kernel_driver_active(dev_handle, 1);
|
||||||
#ifdef DEBUG
|
if (verbose_output)
|
||||||
printf("Kernel driver is%s", ret == 0?" not active\n":"active and ");
|
printf("Kernel driver is%s", ret == 0?" not active\n":"active and ");
|
||||||
#endif
|
|
||||||
|
|
||||||
// Active? Let's try to get control
|
// Active? Let's try to get control
|
||||||
if(ret != LIBUSB_ERROR_NOT_SUPPORTED && ret < 0){
|
if(ret != LIBUSB_ERROR_NOT_SUPPORTED && ret < 0){
|
||||||
|
|
Loading…
Reference in a new issue