示例#1
0
 public bool Open()
 {
     if (m_SerialBase != null)
     {
         return(m_SerialBase.Open());
     }
     return(false);
 }
        protected void CheckPlugged(object com)
        {
            SerialBase serialPort = com as SerialBase;

            serialPort.ReadCount = FRESHCMDCHECKBYTELENGTH;
            bool bOpen = serialPort.Open();

            if (!bOpen)
            {
                return;
            }
            SendFreshCmd(serialPort);
        }