Move the D-Star poll message to be run from the network class.

This commit is contained in:
Jonathan Naylor
2016-01-25 23:08:34 +00:00
parent 8860b72e6c
commit c92434e474
6 changed files with 36 additions and 24 deletions

View File

@@ -171,7 +171,8 @@ void CDMRSlot::writeModem(unsigned char *data)
data[0U] = TAG_EOT;
data[1U] = 0x00U;
writeNetwork(data, DT_TERMINATOR_WITH_LC);
for (unsigned int i = 0U; i < 2U; i++)
writeNetwork(data, DT_TERMINATOR_WITH_LC);
// 480ms of terminator to space things out
for (unsigned int i = 0U; i < 8U; i++)
@@ -443,10 +444,6 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
m_bits = 1U;
m_errs = 0U;
// 120ms of idle to give breathing space for lost frames
for (unsigned int i = 0U; i < 2U; i++)
writeQueue(m_idle);
for (unsigned int i = 0U; i < 3U; i++)
writeQueue(data);