From 53503f27c6b9b15c01c30ffc10b7608282f90086 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 3 Sep 2016 13:59:41 +0100 Subject: [PATCH] Remove unneeded variable. --- DMRDMORX.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/DMRDMORX.cpp b/DMRDMORX.cpp index 83b8750..90003f1 100644 --- a/DMRDMORX.cpp +++ b/DMRDMORX.cpp @@ -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)