Add rate 3/4 data debugging.

This commit is contained in:
Jonathan Naylor 2016-08-08 18:05:14 +01:00
parent e458a3cb3f
commit eabf515403

View file

@ -362,8 +362,12 @@ void CDMRSlot::writeModem(unsigned char *data)
CDMRTrellis trellis;
unsigned char payload[18U];
bool ret = trellis.decode(data + 2U, payload);
if (ret)
if (ret) {
trellis.encode(payload, data + 2U);
} else {
LogDebug("DMR Slot %u, unfixable rate 3/4 data", m_slotNo);
CUtils::dump(1U, "Data", data + 2U, DMR_FRAME_LENGTH_BYTES);
}
}
// Regenerate the Slot Type