mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Stop TX buffer overflows.
This commit is contained in:
parent
90ff130c51
commit
c509f11c2a
6 changed files with 9 additions and 9 deletions
|
|
@ -78,7 +78,7 @@ void CYSFTX::process()
|
|||
if (m_poLen > 0U) {
|
||||
uint16_t space = io.getSpace();
|
||||
|
||||
while (space > (4U * YSF_RADIO_SYMBOL_LENGTH) && space < 1000U) {
|
||||
while (space > (4U * YSF_RADIO_SYMBOL_LENGTH) && space <= TX_RINGBUFFER_SIZE) {
|
||||
uint8_t c = m_poBuffer[m_poPtr++];
|
||||
writeByte(c);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue