mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-08-21 14:36:21 +02:00
Add TX Delay buffer protection.
This commit is contained in:
@@ -434,6 +434,9 @@ void CDStarTX::writeByte(uint8_t c)
|
||||
void CDStarTX::setTXDelay(uint8_t delay)
|
||||
{
|
||||
m_txDelay = 300U + uint16_t(delay) * 6U; // 250ms + tx delay
|
||||
|
||||
if (m_txDelay > 600U)
|
||||
m_txDelay = 600U;
|
||||
}
|
||||
|
||||
uint8_t CDStarTX::getSpace() const
|
||||
|
||||
Reference in New Issue
Block a user