From c0b3e4116630ff891d8c1bb79a2c4207fdedd0bc Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 22 Apr 2015 11:26:57 +0200 Subject: [PATCH] Fixed KISS bug where frame checksum would be sent to host --- protocol/KISS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/KISS.c b/protocol/KISS.c index 8ea100d..441c534 100644 --- a/protocol/KISS.c +++ b/protocol/KISS.c @@ -28,7 +28,7 @@ void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser) { void kiss_messageCallback(AX25Ctx *ctx) { fputc(FEND, &serial->uart0); fputc(0x00, &serial->uart0); - for (unsigned i = 0; i < ctx->frame_len; i++) { + for (unsigned i = 0; i < ctx->frame_len-2; i++) { uint8_t b = ctx->buf[i]; if (b == FEND) { fputc(FESC, &serial->uart0);