mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-08-21 14:36:21 +02:00
Stop TX buffer overflows.
This commit is contained in:
@@ -113,7 +113,7 @@ void CDMRTX::process()
|
||||
if (m_poLen > 0U) {
|
||||
uint16_t space = io.getSpace();
|
||||
|
||||
while (space > (4U * DMR_RADIO_SYMBOL_LENGTH) && space < 1000U) {
|
||||
while (space > (4U * DMR_RADIO_SYMBOL_LENGTH) && space <= TX_RINGBUFFER_SIZE) {
|
||||
uint8_t c = m_poBuffer[m_poPtr];
|
||||
uint8_t m = m_markBuffer[m_poPtr];
|
||||
m_poPtr++;
|
||||
|
||||
Reference in New Issue
Block a user