mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
More work on the keyer.
This commit is contained in:
parent
c103ac91b3
commit
4b0c3d88f3
3 changed files with 39 additions and 6 deletions
8
FM.cpp
8
FM.cpp
|
|
@ -89,7 +89,13 @@ void CFM::setCallsign(const char* callsign, uint8_t speed, uint16_t frequency, u
|
|||
m_callsignAtStart = callsignAtStart;
|
||||
m_callsignAtEnd = callsignAtEnd;
|
||||
|
||||
m_holdoffTimer.setTimeout(holdoff, 0U);
|
||||
uint16_t holdoffTime = 0U;
|
||||
uint16_t callsignTime = time * 60U;
|
||||
if (holdoff > 0U)
|
||||
holdoffTime = callsignTime / holdoff;
|
||||
|
||||
m_holdoffTimer.setTimeout(holdoffTime, 0U);
|
||||
m_callsignTimer.setTimeout(callsignTime, 0U);
|
||||
}
|
||||
|
||||
void CFM::setAck(const char* rfAck, uint8_t speed, uint16_t frequency, uint8_t minTime, uint16_t delay, uint8_t level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue