Remove the CRC4 processing.

This commit is contained in:
Jonathan Naylor
2021-03-28 15:29:26 +01:00
parent 6ac672e106
commit 389bd3b928
4 changed files with 1 additions and 74 deletions

View File

@@ -218,9 +218,6 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
unsigned char lich[M17_LICH_FRAGMENT_LENGTH_BYTES];
CM17Utils::combineFragmentLICH(lich1, lich2, lich3, lich4, lich);
// if (!CM17CRC::checkCRC4(lich, M17_LICH_FRAGMENT_LENGTH_BYTES))
// return false;
m_rfLSFn = (lich4 >> 5) & 0x07U;
m_rfLSF.setFragment(lich, m_rfLSFn);
@@ -286,9 +283,6 @@ bool CM17Control::writeModem(unsigned char* data, unsigned int len)
// Add the fragment number
lich[5U] = (m_rfLSFn & 0x07U) << 5;
// Add the CRC
// CM17CRC::encodeCRC4(lich, M17_LICH_FRAGMENT_LENGTH_BYTES);
unsigned int frag1, frag2, frag3, frag4;
CM17Utils::splitFragmentLICH(lich, frag1, frag2, frag3, frag4);
@@ -508,9 +502,6 @@ void CM17Control::writeNetwork()
// Add the fragment number
lich[5U] = (m_netLSFn & 0x07U) << 5;
// Add the CRC
// CM17CRC::encodeCRC4(lich, M17_LICH_FRAGMENT_LENGTH_BYTES);
unsigned int frag1, frag2, frag3, frag4;
CM17Utils::splitFragmentLICH(lich, frag1, frag2, frag3, frag4);