/// <summary> /// Close specific serial port and finish /// </summary> static void ClosePort() { if (m_pinConnection != null) { m_pinConnection.Close(); m_pinConnection = null; } g_objRFE.Close(); g_objRFE.Dispose(); //g_objRFE = null; }