Sitelet https://github.com/usb4java/usb4java/issues/70
Skip to content

Typo on site #70

Description

@developersu

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions