Skip to content

Commit

Permalink
fix: 修复当波特率为最低时数据接收可能会存在异常
Browse files Browse the repository at this point in the history
Signed-off-by: Leven <levenchn@163.com>
  • Loading branch information
leven99 committed Oct 29, 2019
1 parent 78e920a commit 6990271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViewModels/MainWindowVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ private void SerialPortDataReceived(object sender, SerialDataReceivedEventArgs e
int _BytesToRead = _SerialPort.BytesToRead;
byte[] _RecvData = new byte[_BytesToRead];

_SerialPort.BaseStream.Read(_RecvData, 0, _BytesToRead);
_SerialPort.Read(_RecvData, 0, _BytesToRead);

if (RecvModel.EnableRecv)
{
Expand Down

0 comments on commit 6990271

Please sign in to comment.