mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 06:55:05 +00:00
Reset the sample count at the beginning of each transmission.
This commit is contained in:
parent
3665d02fe7
commit
7907ce6911
3 changed files with 9 additions and 0 deletions
|
|
@ -212,6 +212,8 @@ void CDStarTX::process()
|
|||
|
||||
if (type == DSTAR_HEADER && m_poLen == 0U) {
|
||||
if (!m_tx) {
|
||||
m_count = 0U;
|
||||
|
||||
for (uint16_t i = 0U; i < m_txDelay; i++)
|
||||
m_poBuffer[m_poLen++] = BIT_SYNC;
|
||||
} else {
|
||||
|
|
@ -237,6 +239,9 @@ void CDStarTX::process()
|
|||
}
|
||||
|
||||
if (type == DSTAR_DATA && m_poLen == 0U) {
|
||||
if (!m_tx)
|
||||
m_count = 0U;
|
||||
|
||||
// Pop the type byte off
|
||||
m_buffer.get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue