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); }