From fadef361c1beb41c678d5d96f354fbb7a0cd9d4f Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 12 Apr 2016 19:37:00 +0100 Subject: [PATCH] Clean up the YSF RX. --- YSFRX.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/YSFRX.cpp b/YSFRX.cpp index 17e9009..e9c8796 100644 --- a/YSFRX.cpp +++ b/YSFRX.cpp @@ -230,7 +230,7 @@ void CYSFRX::processData(q15_t sample) } } - // Send a data frame to the host if the required number of bits have been received, or if a data sync has been seen + // Send a data frame to the host if the required number of bits have been received if (m_bufferPtr == YSF_FRAME_LENGTH_BITS) { // We've not seen a data sync for too long, signal RXLOST and change to RX_NONE m_lostCount--; @@ -241,7 +241,6 @@ void CYSFRX::processData(q15_t sample) serial.writeYSFLost(); m_state = YSFRXS_NONE; - return; } else { m_outBuffer[0U] = found ? 0x01U : 0x00U;