make LC_CALL_TERM use dstId;

pull/61/head
Bryan Biedenkapp 2 years ago
parent d467405a01
commit c9e7dcc11f

@ -50,7 +50,7 @@ void LC_CALL_TERM::encode(uint8_t* data)
m_implicit = true;
rsValue = 0U;
rsValue = (rsValue << 24) + WUID_FNE; // System Radio Address
rsValue = (rsValue << 24) + m_dstId; // Target Address
std::unique_ptr<uint8_t[]> rs = TDULC::fromValue(rsValue);
TDULC::encode(data, rs.get());

@ -1657,6 +1657,7 @@ void ControlSignaling::writeRF_TDULC_ChanRelease(bool grp, uint32_t srcId, uint3
}
lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(dstId);
writeRF_TDULC(lc.get(), true);
if (m_p25->m_enableControl) {

@ -979,6 +979,7 @@ void Data::clock(uint32_t ms)
}
std::unique_ptr<lc::TDULC> lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(llId);
m_p25->m_control->writeRF_TDULC(lc.get(), true);
for (uint8_t i = 0U; i < 8U; i++) {
m_p25->writeRF_TDU(true);
@ -1053,6 +1054,7 @@ void Data::sndcpReset(uint32_t llId, bool callTerm)
}
std::unique_ptr<lc::TDULC> lc = std::make_unique<lc::tdulc::LC_CALL_TERM>();
lc->setDstId(llId);
m_p25->m_control->writeRF_TDULC(lc.get(), true);
m_p25->writeRF_Preamble();

Loading…
Cancel
Save

Powered by TurnKey Linux.