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
+2 -1
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();