usb4java
usb4java copied to clipboard
Typo on site
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.'
- So, typo is in here
http://usb4java.org/quickstart/libusb.htmlSection: 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!