mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Start the AX.25 transmit path development.
This commit is contained in:
parent
27c9ad43ec
commit
c026471aec
5 changed files with 39 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue