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
This commit is contained in:
Lorenzo Pavesi 2017-02-17 15:56:35 +01:00 committed by GitHub
parent a04d12bbd3
commit 5f7063041d
1 changed files with 3 additions and 1 deletions

View File

@ -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,