mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
Change the free space handling for AX25.
This commit is contained in:
@@ -869,7 +869,7 @@ void CModem::clock(unsigned int ms)
|
|||||||
m_pocsagSpace--;
|
m_pocsagSpace--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_ax25Space > 1U && !m_txAX25Data.isEmpty()) {
|
if (m_ax25Space > 0U && !m_txAX25Data.isEmpty()) {
|
||||||
unsigned char len = 0U;
|
unsigned char len = 0U;
|
||||||
m_txAX25Data.getData((unsigned char*)&len, sizeof(unsigned int));
|
m_txAX25Data.getData((unsigned char*)&len, sizeof(unsigned int));
|
||||||
m_txAX25Data.getData(m_buffer, len);
|
m_txAX25Data.getData(m_buffer, len);
|
||||||
@@ -883,7 +883,7 @@ void CModem::clock(unsigned int ms)
|
|||||||
|
|
||||||
m_playoutTimer.start();
|
m_playoutTimer.start();
|
||||||
|
|
||||||
m_ax25Space -= len;
|
m_ax25Space = 0U;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_txTransparentData.isEmpty()) {
|
if (!m_txTransparentData.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user