Fix the D-Star slow data processing.

This commit is contained in:
Jonathan Naylor 2026-04-17 12:44:32 +01:00
parent 47467bd880
commit b5b119fa8e
3 changed files with 9 additions and 17 deletions

View file

@ -414,14 +414,6 @@ bool CDStarControl::writeModem(unsigned char *data, unsigned int len)
return false;
}
// The sync is regenerated by the modem so can do exact match
if (::memcmp(data + 1U + DSTAR_VOICE_FRAME_LENGTH_BYTES, DSTAR_SYNC_BYTES, DSTAR_DATA_FRAME_LENGTH_BYTES) == 0) {
m_rfSlowData.start();
m_rfN = 0U;
} else {
m_rfSlowData.add(data + 1U);
}
if (m_rfState == RPT_RF_STATE::AUDIO) {
unsigned char type = m_rfSlowData.getType(false);
//as per specs, this could be any value bewtween 0x80 and 0x9C