Skip to content

Commit

Permalink
Fix problem on SerialPort ReadBufferAsync (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSoundy authored and josesimoes committed Apr 13, 2018
1 parent 92aff58 commit 4abe952
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public async Task<byte[]> ReadBufferAsync(uint bytesToRead, TimeSpan waiTimeout,

if (bytesRead > 0)
{
byte[] readBuffer = new byte[bytesToRead];
byte[] readBuffer = new byte[bytesRead];
inputStreamReader?.ReadBytes(readBuffer);

return readBuffer;
Expand Down

0 comments on commit 4abe952

Please sign in to comment.