diff --git a/client/src/cmdtrace.c b/client/src/cmdtrace.c index 4369d3a71..e178a08fd 100644 --- a/client/src/cmdtrace.c +++ b/client/src/cmdtrace.c @@ -242,7 +242,6 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr } for (int j = 0; j < data_len && j / 18 < 18; j++) { - uint8_t parityBits = parityBytes[j >> 3]; if (protocol != LEGIC && protocol != ISO_14443B @@ -256,7 +255,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr && protocol != FELICA && protocol != LTO && protocol != PROTO_CRYPTORF - && (hdr->isResponse || protocol == ISO_14443A) + && (hdr->isResponse || protocol == ISO_14443A || protocol == PROTO_MIFARE) && (oddparity8(frame[j]) != ((parityBits >> (7 - (j & 0x0007))) & 0x01))) { snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02x! ", frame[j]);