SerialPort: - dispose
This commit is contained in:
@@ -630,8 +630,6 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
|
||||
// //_serialPort.Dispose();
|
||||
// //_byteDataLogger.Info($"{Ident} Port is closed");
|
||||
//}
|
||||
_serialPort.DiscardInBuffer();
|
||||
_serialPort.DiscardOutBuffer();
|
||||
_serialPort.Close();
|
||||
Thread.Sleep(500);
|
||||
_serialPort.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user