Ensure all timers are stopped when we leave FM mode.

This commit is contained in:
Jonathan Naylor 2020-04-18 15:51:49 +01:00
parent 61ccd79c5f
commit c8a450b00d
1 changed files with 7 additions and 0 deletions

7
FM.cpp
View File

@ -184,6 +184,13 @@ void CFM::stateMachine(bool validSignal, uint8_t length)
if (!m_callsign.isRunning() && !m_rfAck.isRunning()) {
DEBUG1("Change to STATE_IDLE");
m_modemState = STATE_IDLE;
m_callsignTimer.stop();
m_timeoutTimer.stop();
m_holdoffTimer.stop();
m_kerchunkTimer.stop();
m_ackMinTimer.stop();
m_ackDelayTimer.stop();
m_hangTimer.stop();
}
}
}