From 59a094b949951ed83b9d67e3e468405f0aaafbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Mon, 3 Oct 2022 17:37:39 +0200 Subject: [PATCH] Minor clean-up --- Nefarius.Peripherals.SerialPort/SerialPort.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nefarius.Peripherals.SerialPort/SerialPort.cs b/Nefarius.Peripherals.SerialPort/SerialPort.cs index c95069e..c6655c6 100644 --- a/Nefarius.Peripherals.SerialPort/SerialPort.cs +++ b/Nefarius.Peripherals.SerialPort/SerialPort.cs @@ -365,7 +365,7 @@ namespace Nefarius.Peripherals.SerialPort commTimeouts.ReadTotalTimeoutMultiplier = 0; commTimeouts.WriteTotalTimeoutConstant = SendTimeoutConstant; commTimeouts.WriteTotalTimeoutMultiplier = SendTimeoutMultiplier; - portDcb.Init(Parity == Parity.Odd || Parity == Parity.Even, TxFlowCts, TxFlowDsr, + portDcb.Init(Parity is Parity.Odd or Parity.Even, TxFlowCts, TxFlowDsr, (int) UseDtr, RxGateDsr, !TxWhenRxXoff, TxFlowX, RxFlowX, (int) UseRts); portDcb.BaudRate = BaudRate; portDcb.ByteSize = (byte) DataBits;