Fixed bug thata was failing to process frames without preamble

This commit is contained in:
Pawel Spychalski (DzikuVx)
2017-11-09 19:52:52 +01:00
parent 1057c0995c
commit 1a031aba3f
4 changed files with 9 additions and 9 deletions

View File

@@ -161,7 +161,7 @@ void qspDecodeIncomingFrame(
{
qsp->frameDecodingStartedAt = millis();
qsp->protocolState = QSP_STATE_CHANNEL_RECEIVED;
qsp->crc ^= incomingByte;
qsp->crc = 0 ^ incomingByte;
qspClearPayload(qsp);