- bux fixed in usb_control_msg (the values read were not written to the original array)
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@230 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -588,8 +588,6 @@ JNIEXPORT jint JNICALL Java_ch_ntb_usb_LibusbJava_usb_1control_1msg
|
||||
{
|
||||
jbyte *bytes = env->GetByteArrayElements(jbytes, NULL);
|
||||
int retVal = usb_control_msg((usb_dev_handle *) dev_handle, requesttype, request, value, index, (char *) bytes, size, timeout);
|
||||
if (bytes) { return retVal; }
|
||||
jbytes = env->NewByteArray(size);
|
||||
env->SetByteArrayRegion(jbytes, 0, size, bytes);
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user