Remove unneeded variable.

48kHz
Jonathan Naylor 2016-09-03 13:59:41 +01:00
parent bc2c96cd2c
commit 53503f27c6
1 changed files with 0 additions and 3 deletions

View File

@ -104,14 +104,11 @@ bool CDMRDMORX::processSample(q15_t sample)
#endif
uint16_t min = m_syncPtr + DMO_BUFFER_LENGTH_SAMPLES - 1U;
uint16_t max = m_syncPtr + 1U;
uint16_t max1 = m_syncPtr + 2U;
if (min >= DMO_BUFFER_LENGTH_SAMPLES)
min -= DMO_BUFFER_LENGTH_SAMPLES;
if (max >= DMO_BUFFER_LENGTH_SAMPLES)
max -= DMO_BUFFER_LENGTH_SAMPLES;
if (max1 >= DMO_BUFFER_LENGTH_SAMPLES)
max1 -= DMO_BUFFER_LENGTH_SAMPLES;
if (min < max) {
if (m_dataPtr >= min && m_dataPtr <= max)