mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Add the CW Id.
This commit is contained in:
parent
24e68639ae
commit
7f49e715f8
6 changed files with 228 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue