From ee2b701bb85feda4c58d526e07f9e08139f0130c Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 20 Aug 2017 22:37:28 +0100 Subject: [PATCH] Small bug fixes. --- DMRGateway.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DMRGateway.cpp b/DMRGateway.cpp index db7424b..226630f 100644 --- a/DMRGateway.cpp +++ b/DMRGateway.cpp @@ -464,11 +464,11 @@ int CDMRGateway::run() LogMessage("%s, Re-linking to startup reflector %u due to RF inactivity timeout", m_xlx2Name.c_str(), m_xlx2Startup); m_xlx2Reflector = m_xlx2Startup; - if (voice1 != NULL) { - if (m_xlx1Reflector == 4000U) - voice1->unlinked(); + if (voice2 != NULL) { + if (m_xlx2Reflector == 4000U) + voice2->unlinked(); else - voice1->linkedTo(m_xlx2Startup); + voice2->linkedTo(m_xlx2Startup); } } } @@ -526,7 +526,7 @@ int CDMRGateway::run() if (m_xlx1Reflector != m_xlx1Startup) m_xlx1Relink.start(); else - m_xlx2Relink.stop(); + m_xlx1Relink.stop(); } status[slotNo] = DMRGWS_XLXREFLECTOR1;