This commit is contained in:
Roland Drabesch
2022-11-30 09:36:31 +01:00
parent 2325046e07
commit 2e27eaeb35
5 changed files with 16 additions and 2 deletions
@@ -605,8 +605,16 @@ namespace Xylem.Common.Hardware.Interfaces.Ports.SerialPorts
if (_serialPort.IsOpen)
{
_serialPort.Close();
if (_serialPort.IsOpen)
{
_byteDataLogger.Info($"{Ident} Port close delay!");
Thread.Sleep(50);
_serialPort.Close();
}
_serialPort.Dispose();
_byteDataLogger.Info($"{Ident} Port is closed");
}
}
}
@@ -1 +1 @@
1a3d4919c9c702245832d925951f2b7cb72fc333
5ed75d99ee45ff67821090f1b3dbb001dd9e4fe3