Add the CW Id.

This commit is contained in:
Jonathan Naylor 2016-05-09 21:57:14 +01:00
parent 24e68639ae
commit 7f49e715f8
6 changed files with 228 additions and 0 deletions

View file

@ -34,6 +34,8 @@ const uint8_t MMDVM_SET_FREQ = 0x04U;
const uint8_t MMDVM_CAL_DATA = 0x08U;
const uint8_t MMDVM_SEND_CWID = 0x0AU;
const uint8_t MMDVM_DSTAR_HEADER = 0x10U;
const uint8_t MMDVM_DSTAR_DATA = 0x11U;
const uint8_t MMDVM_DSTAR_LOST = 0x12U;
@ -395,6 +397,15 @@ void CSerialPort::process()
}
break;
case MMDVM_SEND_CWID:
if (m_modemState == STATE_IDLE)
err = cwIdTX.write(m_buffer + 3U, m_len - 3U);
if (err != 0U) {
DEBUG2("Invalid CW Id data", err);
sendNAK(err);
}
break;
case MMDVM_DSTAR_HEADER:
if (m_dstarEnable) {
if (m_modemState == STATE_IDLE || m_modemState == STATE_DSTAR)