From d8716adc434f3a254d62439aac677ca02584d276 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 24 Jun 2020 11:18:12 +0100 Subject: [PATCH] Change the free space handling for AX25. --- Modem.cpp | 4 ++-- Version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modem.cpp b/Modem.cpp index 1ed2dee..daee6c3 100644 --- a/Modem.cpp +++ b/Modem.cpp @@ -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()) { diff --git a/Version.h b/Version.h index 5f48e8f..9bb9c4a 100644 --- a/Version.h +++ b/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20200621"; +const char* VERSION = "20200624"; #endif