Clean up the YSF RX.

This commit is contained in:
Jonathan Naylor 2016-04-12 19:37:00 +01:00
parent 81596b754d
commit fadef361c1
1 changed files with 1 additions and 2 deletions

View File

@ -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) { if (m_bufferPtr == YSF_FRAME_LENGTH_BITS) {
// We've not seen a data sync for too long, signal RXLOST and change to RX_NONE // We've not seen a data sync for too long, signal RXLOST and change to RX_NONE
m_lostCount--; m_lostCount--;
@ -241,7 +241,6 @@ void CYSFRX::processData(q15_t sample)
serial.writeYSFLost(); serial.writeYSFLost();
m_state = YSFRXS_NONE; m_state = YSFRXS_NONE;
return;
} else { } else {
m_outBuffer[0U] = found ? 0x01U : 0x00U; m_outBuffer[0U] = found ? 0x01U : 0x00U;