Skip to content

Commit

Permalink
fix wrongly disallowed rx of max possible size
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Dec 23, 2017
1 parent 1488abb commit 1a62d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TinyFrame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion TinyFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Upstream URL: https://github.com/MightyPork/TinyFrame
*/

#define TF_VERSION "2.0.3"
#define TF_VERSION "2.0.4"

//---------------------------------------------------------------------------
#include <stdint.h> // for uint8_t etc
Expand Down

0 comments on commit 1a62d78

Please # to comment.