Skip to content

Commit 531beab

Browse files
authored
Fixes #24
1 parent 7617f5e commit 531beab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UsbSerialForAndroid/driver/FtdiSerialDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ protected int ReadFilter(byte[] buffer, int totalBytesRead, int maxPacketSize)
212212
if (length < 0)
213213
throw new IOException("Expected at least " + READ_HEADER_LENGTH + " bytes");
214214

215-
Buffer.BlockCopy(buffer, srcPos + READ_HEADER_LENGTH, buffer, destPos, length);
215+
Buffer.BlockCopy(mReadBuffer, srcPos + READ_HEADER_LENGTH, buffer, destPos, length);
216216
destPos += length;
217217
}
218218
return destPos;
@@ -497,4 +497,4 @@ public static Dictionary<int, int[]> GetSupportedDevices()
497497
};
498498
}
499499
}
500-
}
500+
}

0 commit comments

Comments
 (0)