SerialPort: - dispose

This commit is contained in:
Thomas Wiedebusch
2025-05-14 12:35:43 +02:00
parent a384424557
commit 93550ebef1
@@ -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();