Update YSF2NXDN.cpp

If the Source id is 9999 (MMDVM) then do not resolve the Destination id, it will be a TG number and NOT a User.
This commit is contained in:
Andy Taylor 2020-04-28 21:49:32 +01:00 committed by GitHub
parent 101554272c
commit c861c3303e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -545,7 +545,8 @@ int CYSF2NXDN::run()
::memcpy(gps_buffer + 10U, dt2_temp, 10U);
m_netSrc = m_lookup->findCS(srcId);
m_netDst = m_lookup->findCS(dstId);
//m_netDst = m_lookup->findCS(dstId);
if (srcId != 9999U) { m_netDst = m_lookup->findCS(dstId); } else { m_netDst = std::to_string(dstId); }
LogMessage("Received NXDN Header: Src: %s Dst: %s", m_netSrc.c_str(), m_netDst.c_str());
m_conv.putNXDNHeader();