From a623e6a24647b5c7ad0f8ef3851debbdff9b6d61 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 11 Sep 2019 16:22:37 +0200 Subject: [PATCH] chg: 'hf iclass list' - no parity on responses --- client/cmdtrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/cmdtrace.c b/client/cmdtrace.c index 401dac66e..010621498 100644 --- a/client/cmdtrace.c +++ b/client/cmdtrace.c @@ -303,7 +303,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr && (oddparity8(frame[j]) != ((parityBits >> (7 - (j & 0x0007))) & 0x01))) { snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x! ", frame[j]); - } else if ( protocol == ICLASS && isResponse == true) { + } else if ( protocol == ICLASS && isResponse == false) { uint8_t parity = 0; for (int i=0; i<6; i++) { parity ^= ((frame[0] >> i) & 1); @@ -313,6 +313,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr } else { snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x! ", frame[j]); } + } else { snprintf(line[j / 18] + ((j % 18) * 4), 110, "%02x ", frame[j]); }