From e25b51b4868748582564ff7467d0b50e81e64c4a Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 8 Sep 2016 17:43:34 +0100 Subject: [PATCH] Fix the sync detection byte. --- P25RX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/P25RX.cpp b/P25RX.cpp index 2ba138a..f3e326b 100644 --- a/P25RX.cpp +++ b/P25RX.cpp @@ -216,7 +216,7 @@ void CP25RX::processData(q15_t sample) if (countBits64((m_bitBuffer & P25_SYNC_BITS_MASK) ^ P25_SYNC_BITS) <= SYNC_BIT_RUN_ERRS) { DEBUG2("P25RX: found LDU sync in Data, pos", m_bufferPtr - P25_SYNC_LENGTH_BITS); - m_outBuffer[0U] = 0x00U; + m_outBuffer[0U] = 0x01U; serial.writeP25Hdr(m_outBuffer, P25_HDR_FRAME_LENGTH_BYTES + 1U); // Restore the sync that's now in the wrong place