Adding CW ID support based on original Jonathan G4KLX CW ID

This commit is contained in:
Andy CA6JAU 2017-12-27 13:35:29 -03:00
parent 90a6759baa
commit 8b1042e2b1
8 changed files with 298 additions and 9 deletions

10
IO.cpp
View file

@ -127,8 +127,14 @@ void CIO::process()
}
// Switch off the transmitter if needed
if (m_txBuffer.getData() == 0U && m_tx)
if (m_txBuffer.getData() == 0U && m_tx) {
if(m_cwid_state) { // check for CW ID end of transmission
m_cwid_state = false;
// Restoring previous mode
io.ifConf(m_modemState_prev, true);
}
setRX(false);
}
if(m_modemState_prev == STATE_DSTAR)
scantime = SCAN_TIME;
@ -143,7 +149,7 @@ void CIO::process()
if(m_modeTimerCnt >= scantime) {
m_modeTimerCnt = 0;
if( (m_modemState == STATE_IDLE) && (m_scanPauseCnt == 0) && m_scanEnable) {
if( (m_modemState == STATE_IDLE) && (m_scanPauseCnt == 0) && m_scanEnable && !m_cwid_state) {
m_scanPos = (m_scanPos + 1) % m_TotalModes;
#if !defined(QUIET_MODE_LEDS)
setMode(m_Modes[m_scanPos]);