mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-05 06:15:15 +00:00
Adding CW ID support based on original Jonathan G4KLX CW ID
This commit is contained in:
parent
90a6759baa
commit
8b1042e2b1
8 changed files with 298 additions and 9 deletions
10
IO.cpp
10
IO.cpp
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue