From 5f7063041dd51f87a35121647e394870e7a88e53 Mon Sep 17 00:00:00 2001 From: Lorenzo Pavesi Date: Fri, 17 Feb 2017 15:56:35 +0100 Subject: [PATCH] Add javadoc for LIBUSB_ERROR_INVALID_PARAM The native function controlTransfer return a LIBUSB_ERROR_INVALID_PARAM in case the transfer size is not supported --- src/main/java/org/usb4java/LibUsb.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/usb4java/LibUsb.java b/src/main/java/org/usb4java/LibUsb.java index 3d8dbd1..a84cc27 100644 --- a/src/main/java/org/usb4java/LibUsb.java +++ b/src/main/java/org/usb4java/LibUsb.java @@ -1817,7 +1817,9 @@ public final class LibUsb * {@link #ERROR_TIMEOUT} if the transfer timed out, * {@link #ERROR_PIPE} if the control request was not supported by * the device, {@link #ERROR_NO_DEVICE} if the device has been - * disconnected, another ERROR code on other failures + * disconnected, {@link LIBUSB_ERROR_INVALID_PARAM} if the transfer + * size is larger than the operating system and/or hardware can + * support. Another ERROR code on other failures */ public static native int controlTransfer(final DeviceHandle handle, final byte bmRequestType, final byte bRequest, final short wValue,