Add extra debugging to D-Star transmissions.

This commit is contained in:
Jonathan Naylor
2016-07-13 07:19:08 +01:00
parent 83e65173a9
commit 33d78bc3bd
2 changed files with 23 additions and 10 deletions

View File

@@ -473,12 +473,12 @@ void CDStarControl::writeNetwork()
m_ackTimer.stop();
m_netFrames = 0U;
m_netLost = 0U;
m_netLost = 0U;
m_netN = 0U;
m_netN = 20U;
m_netBits = 1U;
m_netErrs = 0U;
m_netBits = 1U;
m_netErrs = 0U;
writeQueueHeaderNet(data);
@@ -536,12 +536,14 @@ void CDStarControl::writeNetwork()
m_netErrs += errors;
m_netBits += 48U;
m_netN = n;
LogDebug("D-Star, audio sequence no. %u, errs: %u/48", m_netN, errors);
// Regenerate the sync
if (n == 0U)
CSync::addDStarSync(data + 2U);
m_netN = n;
m_packetTimer.start();
m_netFrames++;