usb4java icon indicating copy to clipboard operation
usb4java copied to clipboard

Typo on site

Open developersu opened this issue 7 years ago • 0 comments

Good day! You asked 'If you have found a bug in the software or this web site (even if it's just a typo) then please create an issue on GitHub.'

  1. So, typo is in here http://usb4java.org/quickstart/libusb.html Section: Interfaces
// Check if kernel driver must be detached
boolean detach = LibUsb.hasCapability(LibUsb.CAP_SUPPORTS_DETACH_KERNEL_DRIVER) 
    && LibUsb.kernelDriverActive(handle, interfaceNumber);

LibUsb.hasCapability() returns boolean and LibUsb.kernelDriverActive() returns int. If we use && is won't compile. 2. Also I didn't see platform where LibUsb.hasCapability(LibUsb.CAP_SUPPORTS_DETACH_KERNEL_DRIVER) returns 'true'. Is it possible to get this feature at usb4java-1.3.0? Thanks!

developersu avatar Mar 19 '19 19:03 developersu