kopia lustrzana https://github.com/mik3y/usb-serial-for-android
fix: remove length parameter from call to UsbRequest.queue
rodzic
573c7e41ca
commit
694dbb1ca6
|
@ -206,7 +206,7 @@ public abstract class CommonUsbSerialPort implements UsbSerialPort {
|
|||
|
||||
} else {
|
||||
final ByteBuffer buf = ByteBuffer.wrap(dest, 0, length);
|
||||
if (!mUsbRequest.queue(buf, length)) {
|
||||
if (!mUsbRequest.queue(buf)) {
|
||||
throw new IOException("Queueing USB request failed");
|
||||
}
|
||||
final UsbRequest response = mConnection.requestWait();
|
||||
|
|
Ładowanie…
Reference in New Issue