From 071779755bf232733e233ef0437289f99aafe9e7 Mon Sep 17 00:00:00 2001 From: Leon Krieg Date: Sat, 19 Oct 2024 17:00:59 +0200 Subject: [PATCH] Move EOT sentinel value outside of standard ascii range (0-127) --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 61d09d5..fc7a7a2 100644 --- a/src/main.c +++ b/src/main.c @@ -94,8 +94,8 @@ void RF_Transmit(const byte *data, int size) SendByte(*head++); } - // EOT sentinel - SendByte(0x04); + // EOT sentinel marking the end + SendByte(0xFF); // FF = 1111 1111 } int RF_Receive(byte *data, int size) @@ -240,7 +240,7 @@ static void WriteBit(int val) if (bit == 7) { // Check for EOT sentinel - if (*rxhead == 0x04) { + if (*rxhead == 0xFF) { numdata -= 8; rxdone = true; rxstate = S_IDLE;