Exemplo n.º 1
0
        private bool IsPackageCorrect(byte[] buffer)
        {
            _recived.CopyTo(0, buffer, 0, _recived.Count - 2);
            ushort crc        = _packageHelper.CalcCRC(0, buffer);
            ushort packageCrc = _packageHelper.CombineToUshort(new List <byte>(_recived));

            return(crc == packageCrc);
        }