mirror of https://github.com/ShaYmez/MMDVM_CM.git
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:
parent
07b668218d
commit
57f406e49f
|
@ -635,9 +635,10 @@ void CWiresX::sendDXReply()
|
||||||
sprintf(buf, "%05d", m_dstID);
|
sprintf(buf, "%05d", m_dstID);
|
||||||
::memcpy(data + 36U, buf, 5U);
|
::memcpy(data + 36U, buf, 5U);
|
||||||
|
|
||||||
if (m_dstID > 99999U)
|
//if (m_dstID > 99999U)
|
||||||
sprintf(buf1, "CALL %d", m_dstID);
|
// sprintf(buf1, "CALL %d", m_dstID);
|
||||||
else if (m_dstID == 9U)
|
//else if (m_dstID == 9U)
|
||||||
|
if (m_dstID == 9U)
|
||||||
strcpy(buf1, "LOCAL");
|
strcpy(buf1, "LOCAL");
|
||||||
else if (m_dstID == 9990U)
|
else if (m_dstID == 9990U)
|
||||||
strcpy(buf1, "PARROT");
|
strcpy(buf1, "PARROT");
|
||||||
|
@ -721,9 +722,10 @@ void CWiresX::sendConnectReply(unsigned int dstID)
|
||||||
sprintf(buf, "%05d", m_dstID);
|
sprintf(buf, "%05d", m_dstID);
|
||||||
::memcpy(data + 36U, buf, 5U);
|
::memcpy(data + 36U, buf, 5U);
|
||||||
|
|
||||||
if (m_dstID > 99999U)
|
//if (m_dstID > 99999U)
|
||||||
sprintf(buf1, "CALL %d", m_dstID);
|
// sprintf(buf1, "CALL %d", m_dstID);
|
||||||
else if (m_dstID == 9U)
|
//else if (m_dstID == 9U)
|
||||||
|
if (m_dstID == 9U)
|
||||||
strcpy(buf1, "LOCAL");
|
strcpy(buf1, "LOCAL");
|
||||||
else if (m_dstID == 9990U)
|
else if (m_dstID == 9990U)
|
||||||
strcpy(buf1, "PARROT");
|
strcpy(buf1, "PARROT");
|
||||||
|
|
Loading…
Reference in New Issue