mirror of https://github.com/g4klx/MMDVM.git
Loosen the conditions for returning to STATE_IDLE
This commit is contained in:
parent
d0062a55f8
commit
4cba5931f4
20
FM.cpp
20
FM.cpp
|
@ -132,7 +132,7 @@ void CFM::samples(bool cos, const q15_t* samples, uint8_t length)
|
||||||
void CFM::process()
|
void CFM::process()
|
||||||
{
|
{
|
||||||
q15_t sample;
|
q15_t sample;
|
||||||
while(io.getSpace() >= 3U && m_outputRB.get(sample))
|
while (io.getSpace() >= 3U && m_outputRB.get(sample))
|
||||||
io.write(STATE_FM, &sample, 1U);
|
io.write(STATE_FM, &sample, 1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,16 +235,14 @@ void CFM::stateMachine(bool validSignal)
|
||||||
}
|
}
|
||||||
|
|
||||||
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()) {
|
DEBUG1("Change to STATE_IDLE");
|
||||||
DEBUG1("Change to STATE_IDLE");
|
m_modemState = STATE_IDLE;
|
||||||
m_modemState = STATE_IDLE;
|
m_callsignTimer.stop();
|
||||||
m_callsignTimer.stop();
|
m_timeoutTimer.stop();
|
||||||
m_timeoutTimer.stop();
|
m_kerchunkTimer.stop();
|
||||||
m_kerchunkTimer.stop();
|
m_ackMinTimer.stop();
|
||||||
m_ackMinTimer.stop();
|
m_ackDelayTimer.stop();
|
||||||
m_ackDelayTimer.stop();
|
m_hangTimer.stop();
|
||||||
m_hangTimer.stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
||||||
#define HW_TYPE "MMDVM"
|
#define HW_TYPE "MMDVM"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DESCRIPTION "20200508 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)"
|
#define DESCRIPTION "20200510 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)"
|
||||||
|
|
||||||
#if defined(GITVERSION)
|
#if defined(GITVERSION)
|
||||||
#define concat(h, a, b, c) h " " a " " b " GitID #" c ""
|
#define concat(h, a, b, c) h " " a " " b " GitID #" c ""
|
||||||
|
|
Loading…
Reference in New Issue