Start the AX.25 transmit path development.

This commit is contained in:
Jonathan Naylor
2020-06-21 18:53:38 +01:00
parent 27c9ad43ec
commit c026471aec
5 changed files with 39 additions and 3 deletions

View File

@@ -688,7 +688,7 @@ int CMMDVMHost::run()
m_ump->setCD(cd);
}
unsigned char data[220U];
unsigned char data[500U];
unsigned int len;
bool ret;
@@ -989,6 +989,20 @@ int CMMDVMHost::run()
}
}
if (m_ax25 != NULL) {
ret = m_modem->hasAX25Space();
if (ret) {
len = m_ax25->readModem(data);
if (len > 0U) {
if (m_mode == MODE_IDLE || m_mode == MODE_FM) {
m_modem->writeAX25Data(data, len);
} else if (m_mode != MODE_LOCKOUT) {
LogWarning("AX.25 data received when in mode %u", m_mode);
}
}
}
}
if (transparentSocket != NULL) {
in_addr address;
unsigned int port = 0U;