EtherMania.com.WeatherShield1.readAnswer C# (CSharp) Method

readAnswer() private method

private readAnswer ( commands command ) : bool
command commands
return bool
        private bool readAnswer(commands command)
        {
            m_dataPort.Active = false;

            for (int n = RXBUFFERLENGTH; n > 0; n--)
                m_tempBuffer[n-1] = readByte();

            m_dataPort.Active = true;

            return (m_tempBuffer[RXCOMMANDPOS] == (Byte)command);
        }