1
0
Fork 0

Update YSFGateway.cpp

Adds the WiresX link forward on connect to sub-ordinate gateway, this was the last piece....
ycs232-kbc
Andy Taylor 6 years ago committed by GitHub
parent bee173f9e3
commit 3cfa1a8d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -539,6 +539,11 @@ void CYSFGateway::processWiresX(const unsigned char* buffer, unsigned char fi, u
m_inactivityTimer.start(); m_inactivityTimer.start();
m_lostTimer.start(); m_lostTimer.start();
m_linkType = LINK_YSF; m_linkType = LINK_YSF;
// If we are linking to a YSF2xxx mode, send the YSF2xxx gateway the link command too
if (reflector->m_name.rfind("YSF2DMR", 0) == 0 || reflector->m_name.rfind("YSF2P25", 0) == 0 || reflector->m_name.rfind("YSF2NXDN", 0) == 0) {
m_wiresX->sendConnect(m_ysfNetwork);
}
} }
break; break;
case WXS_CONNECT_FCS: { case WXS_CONNECT_FCS: {

Loading…
Cancel
Save