comm
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
||||
1a3d4919c9c702245832d925951f2b7cb72fc333
|
||||
5ed75d99ee45ff67821090f1b3dbb001dd9e4fe3
|
||||
|
||||
Reference in New Issue
Block a user