Fix the TX Hang handling.

This commit is contained in:
Jonathan Naylor 2020-05-20 15:16:12 +01:00
parent 5f29808b80
commit 2cf2ce4dfa
4 changed files with 5 additions and 15 deletions

View file

@ -70,10 +70,7 @@ m_txCount(0U)
void CP25TX::process()
{
if (m_buffer.getData() == 0U && m_poLen == 0U && m_txCount == 0U)
return;
if (m_poLen == 0U) {
if (m_poLen == 0U && m_buffer.getData() > 0U) {
if (!m_tx) {
for (uint16_t i = 0U; i < m_txDelay; i++)
m_poBuffer[m_poLen++] = P25_START_SYNC;