Move the RSSI sampling point.

This commit is contained in:
Jonathan Naylor 2016-08-11 20:19:31 +01:00
parent 0bfecf72a9
commit 7c34cdb6f8
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ bool CDMRSlotRX::processSample(q15_t sample)
correlateSync(true); correlateSync(true);
} else { } else {
#if defined(SEND_RSSI_DATA) #if defined(SEND_RSSI_DATA)
// Grab the RSSI data near the centre of the frame // Grab the RSSI data during the frame
if (m_state == DMRRXS_VOICE && m_dataPtr == m_syncPtr && m_rssiCount == 2U) if (m_state == DMRRXS_VOICE && m_dataPtr == m_startPtr && m_rssiCount == 2U)
m_rssi = io.getRSSIValue(); m_rssi = io.getRSSIValue();
#endif #endif
uint16_t min = m_syncPtr - 1U; uint16_t min = m_syncPtr - 1U;