From 0d21a6614e21729b6608f60d4b67c231dd582641 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Fri, 19 Jun 2020 14:08:11 -0400 Subject: [PATCH] When not connected to XLX, pass P25 destination TG and DMR destination TG back n forth. When connected to XLX, always use XLX module for DMR destintation TG --- P252DMR/P252DMR.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/P252DMR/P252DMR.cpp b/P252DMR/P252DMR.cpp index dda6a5d..62fffd8 100644 --- a/P252DMR/P252DMR.cpp +++ b/P252DMR/P252DMR.cpp @@ -375,6 +375,11 @@ int CP252DMR::run() m_conv.putP25Header(); } m_p25Dst = dstId; + + if(!m_xlxConnected){ + m_dstid = m_p25Dst; + } + } else if (m_p25Frame[0U] == 0x66U && !m_p25info) { srcId = (m_p25Frame[1U] << 16) & 0xFF0000U; srcId |= (m_p25Frame[2U] << 8) & 0x00FF00U; @@ -646,6 +651,11 @@ int CP252DMR::run() if (p25Watch.elapsed() > P25_FRAME_PER) { unsigned int p25FrameType = m_conv.getP25(m_p25Frame); m_p25Src = m_dmrSrc; + + if(!m_xlxConnected){ + m_p25Dst = m_dmrDst; + } + if(p25FrameType == TAG_HEADER) { p25_cnt = 0U; p25Watch.start();