From 57f406e49fd63fcce7b2ac7188479eef28d8c4aa Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Sat, 2 May 2020 19:13:42 +0100 Subject: [PATCH] Update WiresX.cpp Matching out "CALL nnnnnn" rather than "TG nnnnn" for 6 digit talk groups. 6 or more digit groups should now show as TG as they should. --- YSF2DMR/WiresX.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/YSF2DMR/WiresX.cpp b/YSF2DMR/WiresX.cpp index 8d6e8d9..5bdc90c 100644 --- a/YSF2DMR/WiresX.cpp +++ b/YSF2DMR/WiresX.cpp @@ -635,9 +635,10 @@ void CWiresX::sendDXReply() sprintf(buf, "%05d", m_dstID); ::memcpy(data + 36U, buf, 5U); - if (m_dstID > 99999U) - sprintf(buf1, "CALL %d", m_dstID); - else if (m_dstID == 9U) + //if (m_dstID > 99999U) + // sprintf(buf1, "CALL %d", m_dstID); + //else if (m_dstID == 9U) + if (m_dstID == 9U) strcpy(buf1, "LOCAL"); else if (m_dstID == 9990U) strcpy(buf1, "PARROT"); @@ -721,9 +722,10 @@ void CWiresX::sendConnectReply(unsigned int dstID) sprintf(buf, "%05d", m_dstID); ::memcpy(data + 36U, buf, 5U); - if (m_dstID > 99999U) - sprintf(buf1, "CALL %d", m_dstID); - else if (m_dstID == 9U) + //if (m_dstID > 99999U) + // sprintf(buf1, "CALL %d", m_dstID); + //else if (m_dstID == 9U) + if (m_dstID == 9U) strcpy(buf1, "LOCAL"); else if (m_dstID == 9990U) strcpy(buf1, "PARROT");