From 69902719cfa1a5601a8fc932909ac14a256eb945 Mon Sep 17 00:00:00 2001 From: Leven Date: Tue, 29 Oct 2019 15:10:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BD=93=E6=B3=A2?= =?UTF-8?q?=E7=89=B9=E7=8E=87=E4=B8=BA=E6=9C=80=E4=BD=8E=E6=97=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8E=A5=E6=94=B6=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Leven --- ViewModels/MainWindowVM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ViewModels/MainWindowVM.cs b/ViewModels/MainWindowVM.cs index f148627..d985d84 100644 --- a/ViewModels/MainWindowVM.cs +++ b/ViewModels/MainWindowVM.cs @@ -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) {