reverse a check change

This commit is contained in:
iceman1001 2020-08-19 16:11:44 +02:00
parent 5525cefd19
commit ea86edc723

View file

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