From 7c34cdb6f8e0c9ace12e28847b7427a3f74591e4 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 11 Aug 2016 20:19:31 +0100 Subject: [PATCH] Move the RSSI sampling point. --- DMRSlotRX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMRSlotRX.cpp b/DMRSlotRX.cpp index 424b78f..4772d8f 100644 --- a/DMRSlotRX.cpp +++ b/DMRSlotRX.cpp @@ -124,8 +124,8 @@ bool CDMRSlotRX::processSample(q15_t sample) correlateSync(true); } else { #if defined(SEND_RSSI_DATA) - // Grab the RSSI data near the centre of the frame - if (m_state == DMRRXS_VOICE && m_dataPtr == m_syncPtr && m_rssiCount == 2U) + // Grab the RSSI data during the frame + if (m_state == DMRRXS_VOICE && m_dataPtr == m_startPtr && m_rssiCount == 2U) m_rssi = io.getRSSIValue(); #endif uint16_t min = m_syncPtr - 1U;