Fix DMR timing bug with OscOffset.

This commit is contained in:
Jonathan Naylor 2016-03-23 17:46:21 +00:00
parent f656baf64e
commit 8d3ede9160
5 changed files with 20 additions and 18 deletions

4
IO.cpp
View file

@ -283,12 +283,12 @@ void CIO::process()
if (m_count >= m_sampleCount) {
if (m_sampleInsert) {
blockSize = RX_BLOCK_SIZE + 1U;
blockSize++;
samples[RX_BLOCK_SIZE] = 0;
for (int8_t i = RX_BLOCK_SIZE - 1; i >= 0; i--)
control[i + 1] = control[i];
} else {
blockSize = RX_BLOCK_SIZE - 1U;
blockSize--;
for (uint8_t i = 0U; i < (RX_BLOCK_SIZE - 1U); i++)
control[i] = control[i + 1U];
}