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.
This commit is contained in:
Andy Taylor 2020-05-02 19:13:42 +01:00 committed by GitHub
parent 07b668218d
commit 57f406e49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");