mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-10 01:16:27 +00:00
cdc: Remove spurious readAmt line from previous commit.
This commit is contained in:
parent
b328f3cbc9
commit
3812fbcb55
@ -96,7 +96,6 @@ public class CdcAcmSerialDriver extends UsbSerialDriver {
|
|||||||
final int numBytesRead;
|
final int numBytesRead;
|
||||||
synchronized (mReadBufferLock) {
|
synchronized (mReadBufferLock) {
|
||||||
int readAmt = Math.min(dest.length, mReadBuffer.length);
|
int readAmt = Math.min(dest.length, mReadBuffer.length);
|
||||||
readAmt = Math.min(readAmt, mReadEndpoint.getMaxPacketSize());
|
|
||||||
numBytesRead = mConnection.bulkTransfer(mReadEndpoint, mReadBuffer, readAmt,
|
numBytesRead = mConnection.bulkTransfer(mReadEndpoint, mReadBuffer, readAmt,
|
||||||
timeoutMillis);
|
timeoutMillis);
|
||||||
if (numBytesRead < 0) {
|
if (numBytesRead < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user