Fix the CCITT16 checksums for CSBK, DMR Data and D-Star Headers.

This commit is contained in:
Jonathan Naylor
2016-02-18 21:56:26 +00:00
parent 9a3fe18e91
commit 63aa53c705
8 changed files with 96 additions and 56 deletions

View File

@@ -41,7 +41,7 @@ m_blocks(0U)
header[10U] ^= DATA_HEADER_CRC_MASK[0U];
header[11U] ^= DATA_HEADER_CRC_MASK[1U];
m_valid = CCRC::checkCCITT16(header, 12U);
m_valid = CCRC::checkCCITT162(header, 12U);
m_gi = (header[0U] & 0x80U) == 0x80U;