mirror of https://github.com/rusefi/usb4java.git
Fix passing of the special value HOTPLUG_MATCH_ANY, it needs to be an int so as to not hide one of the short/byte values.
This commit is contained in:
parent
b166d2ef0d
commit
67e09e25ae
|
@ -614,7 +614,7 @@ public final class LibUsb
|
|||
// Wildcard matching for hotplug events
|
||||
|
||||
/** Match any vendorId or productId or deviceClass. */
|
||||
public static final byte HOTPLUG_MATCH_ANY = -1;
|
||||
public static final int HOTPLUG_MATCH_ANY = -1;
|
||||
|
||||
/**
|
||||
* Hotplug callbacks (to correctly manage calls and additional data).
|
||||
|
@ -2612,7 +2612,7 @@ public final class LibUsb
|
|||
*/
|
||||
public static synchronized int hotplugRegisterCallback(
|
||||
final Context context, final int events, final int flags,
|
||||
final short vendorId, final short productId, final byte deviceClass,
|
||||
final int vendorId, final int productId, final int deviceClass,
|
||||
final HotplugCallback callback, final Object userData,
|
||||
final HotplugCallbackHandle callbackHandle)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue