From 33a23a1b62384c193060f40a6096bbf8069b9857 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 28 Jan 2016 10:15:23 +0000 Subject: [PATCH] Update DStarControl.cpp --- DStarControl.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/DStarControl.cpp b/DStarControl.cpp index de887e4..effd0df 100644 --- a/DStarControl.cpp +++ b/DStarControl.cpp @@ -383,25 +383,11 @@ void CDStarControl::writeNetwork() unsigned char n = data[1U]; if (type == TAG_HEADER) { - if (m_state == RS_RELAYING_NETWORK_AUDIO) + if (m_state != RS_LISTENING) return; CDStarHeader header(data + 2U); - // Is this a transmission destined for a repeater? - if (!header.isRepeater()) - return; - - unsigned char callsign[DSTAR_LONG_CALLSIGN_LENGTH]; - header.getRPTCall1(callsign); - - // Is it for us? - if (::memcmp(callsign, m_callsign, DSTAR_LONG_CALLSIGN_LENGTH) != 0) - return; - - unsigned char gateway[DSTAR_LONG_CALLSIGN_LENGTH]; - header.getRPTCall2(gateway); - unsigned char my1[DSTAR_LONG_CALLSIGN_LENGTH]; header.getMyCall1(my1);