From ea86edc723909f2072a0f08f0127aa4bbc2e0ce8 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 19 Aug 2020 16:11:44 +0200 Subject: [PATCH] reverse a check change --- armsrc/iso15693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index da9501ecd..991a21a0e 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -716,7 +716,7 @@ int GetIso15693AnswerFromTag(uint8_t *response, uint16_t max_len, uint16_t timeo if (dt->lastBit == SOF_PART2) { *eof_time -= (8 * 16); // needed 8 additional samples to confirm single SOF (iCLASS) } - if (dt->len >= dt->max_len) { + if (dt->len > dt->max_len) { ret = -2; // buffer overflow Dbprintf("overflow (%d >= %d", dt->len, dt->max_len); }