Accept rejected or invalid transmissions as being 'in' despite not being

relayed. Also give extra headroom on the convolution decoders.
This commit is contained in:
Jonathan Naylor
2021-06-25 16:21:48 +01:00
parent a8fe55acc4
commit 50337639b2
8 changed files with 17 additions and 17 deletions

View File

@@ -434,9 +434,9 @@ bool CDStarControl::writeModem(unsigned char *data, unsigned int len)
return false;
} else if (type == TAG_DATA1) {
if (m_rfState == RS_RF_REJECTED) {
return false;
return true;
} else if (m_rfState == RS_RF_INVALID) {
return false;
return true;
} else if (m_rfState == RS_RF_LISTENING) {
// 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) {