mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 16:24:11 +02:00
Release to STATE_IDLE under simpler conditions.
This commit is contained in:
@@ -117,8 +117,6 @@ void CFM::samples(bool cos, const q15_t* samples, uint8_t length)
|
|||||||
currentBoost = m_extAudioBoost;
|
currentBoost = m_extAudioBoost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Only let RF audio through when relaying RF audio
|
// Only let RF audio through when relaying RF audio
|
||||||
if (m_state == FS_RELAYING_RF || m_state == FS_KERCHUNK_RF || m_state == FS_RELAYING_EXT || m_state == FS_KERCHUNK_EXT) {
|
if (m_state == FS_RELAYING_RF || m_state == FS_KERCHUNK_RF || m_state == FS_RELAYING_EXT || m_state == FS_KERCHUNK_EXT) {
|
||||||
currentSample = m_blanking.process(currentSample);
|
currentSample = m_blanking.process(currentSample);
|
||||||
@@ -295,7 +293,6 @@ void CFM::stateMachine(bool validRFSignal, bool validExtSignal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_state == FS_LISTENING && m_modemState == STATE_FM) {
|
if (m_state == FS_LISTENING && m_modemState == STATE_FM) {
|
||||||
if (!m_callsign.isRunning() && !m_rfAck.isRunning() && !m_extAck.isRunning()) {
|
|
||||||
DEBUG1("Change to STATE_IDLE");
|
DEBUG1("Change to STATE_IDLE");
|
||||||
m_modemState = STATE_IDLE;
|
m_modemState = STATE_IDLE;
|
||||||
m_callsignTimer.stop();
|
m_callsignTimer.stop();
|
||||||
@@ -306,7 +303,6 @@ void CFM::stateMachine(bool validRFSignal, bool validExtSignal)
|
|||||||
m_hangTimer.stop();
|
m_hangTimer.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void CFM::clock(uint8_t length)
|
void CFM::clock(uint8_t length)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user