From 815e004b8d870794f48ca9e76c5ad56bdf1ce7a3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 19 Aug 2020 16:22:56 +0200 Subject: [PATCH] log zero length responses again... sof.. --- armsrc/iso15693.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 991a21a0e..8e01c9555 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -718,7 +718,7 @@ int GetIso15693AnswerFromTag(uint8_t *response, uint16_t max_len, uint16_t timeo } if (dt->len > dt->max_len) { ret = -2; // buffer overflow - Dbprintf("overflow (%d >= %d", dt->len, dt->max_len); + Dbprintf("overflow (%d > %d", dt->len, dt->max_len); } break; } @@ -755,9 +755,8 @@ int GetIso15693AnswerFromTag(uint8_t *response, uint16_t max_len, uint16_t timeo if (ret < 0) { return ret; } - if (dt->len > 0) { - LogTrace_ISO15693(dt->output, dt->len, (sof_time * 4), (*eof_time * 4), NULL, false); - } + + LogTrace_ISO15693(dt->output, dt->len, (sof_time * 4), (*eof_time * 4), NULL, false); return dt->len; }