From 1a62d784432e8a99e60e7d0cb6a4c28aa8a2b013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 23 Dec 2017 22:55:46 +0100 Subject: [PATCH] fix wrongly disallowed rx of max possible size --- TinyFrame.c | 2 +- TinyFrame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TinyFrame.c b/TinyFrame.c index fb6d8ac..bce258c 100644 --- a/TinyFrame.c +++ b/TinyFrame.c @@ -549,7 +549,7 @@ void _TF_FN TF_AcceptChar(TinyFrame *tf, unsigned char c) CKSUM_RESET(tf->cksum); // Start collecting the payload - if (tf->len >= TF_MAX_PAYLOAD_RX) { + if (tf->len > TF_MAX_PAYLOAD_RX) { // ERROR - frame too long. Consume, but do not store. tf->discard_data = true; } diff --git a/TinyFrame.h b/TinyFrame.h index a588309..1a617e7 100644 --- a/TinyFrame.h +++ b/TinyFrame.h @@ -10,7 +10,7 @@ * Upstream URL: https://github.com/MightyPork/TinyFrame */ -#define TF_VERSION "2.0.3" +#define TF_VERSION "2.0.4" //--------------------------------------------------------------------------- #include // for uint8_t etc