From 3cfa1a8d35722e13463226bea438f7437f147a77 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 29 Jan 2019 15:41:09 +0000 Subject: [PATCH] Update YSFGateway.cpp Adds the WiresX link forward on connect to sub-ordinate gateway, this was the last piece.... --- YSFGateway/YSFGateway.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 4e1490d..9859411 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -539,6 +539,11 @@ void CYSFGateway::processWiresX(const unsigned char* buffer, unsigned char fi, u m_inactivityTimer.start(); m_lostTimer.start(); 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; case WXS_CONNECT_FCS: {