Silently ignore the frequency setting command.

This commit is contained in:
Jonathan Naylor 2016-02-18 09:06:09 +00:00
parent 48368252f7
commit 610168e861
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ const uint8_t MMDVM_GET_VERSION = 0x00U;
const uint8_t MMDVM_GET_STATUS = 0x01U;
const uint8_t MMDVM_SET_CONFIG = 0x02U;
const uint8_t MMDVM_SET_MODE = 0x03U;
const uint8_t MMDVM_SET_FREQ = 0x04U;
const uint8_t MMDVM_CAL_DATA = 0x08U;
@ -351,6 +352,10 @@ void CSerialPort::process()
sendNAK(err);
break;
case MMDVM_SET_FREQ:
sendAck();
break;
case MMDVM_CAL_DATA:
if (m_modemState == STATE_CALIBRATE)
err = calTX.write(m_buffer + 3U, m_len - 3U);