From ca5f4002eaa20d7dd799ca0e84c29ebbf633a656 Mon Sep 17 00:00:00 2001 From: morgan Date: Sat, 24 Sep 2016 17:34:18 -0700 Subject: [PATCH] working afsk receive --- src/packet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packet.cpp b/src/packet.cpp index dc49259..7f2a386 100644 --- a/src/packet.cpp +++ b/src/packet.cpp @@ -279,7 +279,6 @@ bool AFSK::Decoder::read() { while(rx_fifo.count()) { // Grab the character char c = rx_fifo.dequeue(); - //Serial.println(c); bool escaped = false; if(c == HDLC_ESCAPE) { // We received an escaped byte, mark it escaped = true; @@ -287,7 +286,7 @@ bool AFSK::Decoder::read() { //currentPacket->append(HDLC_ESCAPE); // Append without FCS c = rx_fifo.dequeue(); // Reset to the next character } - + // Append all the bytes // This will include unescaped HDLC_FRAME bytes if(c != HDLC_FRAME || escaped) // Append frame if it is escaped