From d1c8e34cea5f176dbd99190e524c426fced30bbf Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 5 Sep 2020 22:45:25 +0200 Subject: [PATCH] Update YSFGateway.cpp ADD OPTIONS= --- YSFGateway/YSFGateway.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 27fd83e..fb23724 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -89,6 +89,7 @@ m_fcsNetwork(NULL), m_linkType(LINK_NONE), m_current(), m_startup(), +m_options(), m_exclude(false), m_inactivityTimer(1000U), m_lostTimer(1000U, 120U), @@ -254,6 +255,7 @@ int CYSFGateway::run() } m_startup = m_conf.getNetworkStartup(); + m_options = m_conf.getNetworkOptions(); bool revert = m_conf.getNetworkRevert(); bool wiresXCommandPassthrough = m_conf.getWiresXCommandPassthrough(); @@ -803,6 +805,8 @@ void CYSFGateway::startupLinking() m_linkType = LINK_NONE; bool ok = m_fcsNetwork->writeLink(m_startup); + m_fcsNetwork->setOptions(m_options); + if (ok) { LogMessage("Automatic (re-)connection to %s", m_startup.c_str()); @@ -823,6 +827,8 @@ void CYSFGateway::startupLinking() if (reflector != NULL) { LogMessage("Automatic (re-)connection to %5.5s - \"%s\"", reflector->m_id.c_str(), reflector->m_name.c_str()); + m_ysfNetwork->setOptions(m_options); + m_wiresX->setReflector(reflector); m_ysfNetwork->setDestination(reflector->m_name, reflector->m_address, reflector->m_port);