mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Add the data packing and unpacking code.
This commit is contained in:
parent
c2ca65f889
commit
7ae77a01a9
5 changed files with 81 additions and 73 deletions
|
|
@ -811,11 +811,11 @@ int CMMDVMHost::run()
|
|||
}
|
||||
|
||||
len = m_modem->readFMData(data);
|
||||
if (m_nxdn != NULL && len > 0U) {
|
||||
if (m_fm != NULL && len > 0U) {
|
||||
if (m_mode == MODE_IDLE) {
|
||||
bool ret = m_fm->writeModem(data, len);
|
||||
if (ret) {
|
||||
m_modeTimer.setTimeout(m_nxdnRFModeHang);
|
||||
m_modeTimer.setTimeout(m_nxdnRFModeHang); // XXX
|
||||
setMode(MODE_FM);
|
||||
}
|
||||
} else if (m_mode == MODE_FM) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue