Workaround for TX buffer overflows.

This commit is contained in:
Jonathan Naylor 2016-01-18 21:32:38 +00:00
parent 8f9744c0ec
commit 4fb563f534
5 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ void CYSFTX::process()
if (m_poLen > 0U) {
uint16_t space = io.getSpace();
while (space > (4U * YSF_RADIO_SYMBOL_LENGTH)) {
while (space > (4U * YSF_RADIO_SYMBOL_LENGTH) && space < 1000U) {
uint8_t c = m_poBuffer[m_poPtr++];
writeByte(c);