Change the free space handling for AX25.

This commit is contained in:
Jonathan Naylor 2020-06-24 11:18:12 +01:00
parent 92ceba052a
commit d8716adc43
2 changed files with 3 additions and 3 deletions

View file

@ -869,7 +869,7 @@ void CModem::clock(unsigned int ms)
m_pocsagSpace--;
}
if (m_ax25Space > 1U && !m_txAX25Data.isEmpty()) {
if (m_ax25Space > 0U && !m_txAX25Data.isEmpty()) {
unsigned char len = 0U;
m_txAX25Data.getData((unsigned char*)&len, sizeof(unsigned int));
m_txAX25Data.getData(m_buffer, len);
@ -883,7 +883,7 @@ void CModem::clock(unsigned int ms)
m_playoutTimer.start();
m_ax25Space -= len;
m_ax25Space = 0U;
}
if (!m_txTransparentData.isEmpty()) {

View file

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200621";
const char* VERSION = "20200624";
#endif