mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 22:46:59 +00:00
Add TX Delay buffer protection.
This commit is contained in:
parent
e93b264d9c
commit
c0941c4856
5 changed files with 14 additions and 2 deletions
|
|
@ -152,6 +152,9 @@ void CYSFTX::writeByte(uint8_t c)
|
|||
void CYSFTX::setTXDelay(uint8_t delay)
|
||||
{
|
||||
m_txDelay = 600U + uint16_t(delay) * 12U; // 500ms + tx delay
|
||||
|
||||
if (m_txDelay > 1200U)
|
||||
m_txDelay = 1200U;
|
||||
}
|
||||
|
||||
uint8_t CYSFTX::getSpace() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue