Skip to content

Commit

Permalink
ensure TDU preamble is sent before voice for late entry;
Browse files Browse the repository at this point in the history
  • Loading branch information
gatekeep committed Jul 7, 2024
1 parent 98ded89 commit d467405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/host/p25/Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,9 @@ void Control::writeRF_Nulls()

void Control::writeRF_Preamble(uint32_t preambleCount, bool force)
{
if (!m_duplex && !force)
return;

if (preambleCount == 0) {
preambleCount = m_tduPreambleCount;
}
Expand Down
6 changes: 3 additions & 3 deletions src/host/p25/packet/Voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ bool Voice::process(uint8_t* data, uint32_t len)
}
}

if (m_p25->m_duplex) {
m_p25->writeRF_Preamble();
}
m_p25->writeRF_Preamble();

m_p25->m_rfTGHang.start();
m_p25->m_netTGHang.stop();
Expand Down Expand Up @@ -517,6 +515,8 @@ bool Voice::process(uint8_t* data, uint32_t len)
else {
frameType = FrameType::HDU_LATE_ENTRY;
LogWarning(LOG_RF, P25_HDU_STR ", not transmitted; possible late entry, dstId = %u, algo = $%02X, kid = $%04X", m_rfLastHDU.getDstId(), m_rfLastHDU.getAlgId(), m_rfLastHDU.getKId());

m_p25->writeRF_Preamble();
}

// if voice on control; insert group voice channel updates directly after HDU but before LDUs
Expand Down

0 comments on commit d467405

Please sign in to comment.