void Deinit() { if (SerialPortRTS != null && SerialPortRTS.IsOpen) { SerialPortRTS.Close(); Trace.WriteLine("Close SerialPortRTS in " + Name); } }
internal static void CloseRTSPort() { if (SerialPortRTS == null) { return; } if (SerialPortRTS.IsOpen) { SerialPortRTS.Close(); } }