mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Add the FM controller status to the FM Status message.
This commit is contained in:
parent
df0a9ebe72
commit
7dc420c8ff
3 changed files with 8 additions and 8 deletions
7
FM.cpp
7
FM.cpp
|
|
@ -328,7 +328,7 @@ void CFM::clock(uint8_t length)
|
|||
m_statusTimer.clock(length);
|
||||
|
||||
if (m_statusTimer.isRunning() && m_statusTimer.hasExpired()) {
|
||||
serial.writeFMStatus();
|
||||
serial.writeFMStatus(m_state);
|
||||
m_statusTimer.start();
|
||||
}
|
||||
}
|
||||
|
|
@ -356,7 +356,7 @@ void CFM::listeningState(bool validRFSignal, bool validExtSignal)
|
|||
m_callsignTimer.start();
|
||||
|
||||
m_statusTimer.start();
|
||||
serial.writeFMStatus();
|
||||
serial.writeFMStatus(m_state);
|
||||
} else if (validExtSignal) {
|
||||
if (m_kerchunkTimer.getTimeout() > 0U) {
|
||||
DEBUG1("State to KERCHUNK_EXT");
|
||||
|
|
@ -378,7 +378,7 @@ void CFM::listeningState(bool validRFSignal, bool validExtSignal)
|
|||
m_callsignTimer.start();
|
||||
|
||||
m_statusTimer.start();
|
||||
serial.writeFMStatus();
|
||||
serial.writeFMStatus(m_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -731,4 +731,3 @@ void CFM::insertSilence(uint16_t ms)
|
|||
for (uint32_t i = 0U; i < nSamples; i++)
|
||||
m_outputRFRB.put(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue