mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Convert M17 to use the new M17 Gateway.
This commit is contained in:
parent
9559cdb060
commit
18c8b95829
5 changed files with 35 additions and 166 deletions
|
|
@ -1556,7 +1556,7 @@ bool CMMDVMHost::createM17Network()
|
|||
LogInfo(" Local Port: %u", localPort);
|
||||
LogInfo(" Mode Hang: %us", m_m17NetModeHang);
|
||||
|
||||
m_m17Network = new CM17Network(m_callsign, localPort, debug);
|
||||
m_m17Network = new CM17Network(localPort, gatewayAddress, gatewayPort, debug);
|
||||
bool ret = m_m17Network->open();
|
||||
if (!ret) {
|
||||
delete m_m17Network;
|
||||
|
|
@ -1564,8 +1564,6 @@ bool CMMDVMHost::createM17Network()
|
|||
return false;
|
||||
}
|
||||
|
||||
m_m17Network->link(gatewayAddress, gatewayPort, 'A');
|
||||
|
||||
m_m17Network->enable(true);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue