From cd3fc9242eae2a0152198e480ac865885217cc86 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 30 Jun 2018 18:34:58 +0200 Subject: [PATCH] chg: iclass output --- client/cmdhficlass.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 8518bfeb2..cd342cab4 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -535,7 +535,7 @@ int HFiClassReader(const char *Cmd, bool loop, bool verbose) { } } if( readStatus & FLAG_ICLASS_READER_CSN){ - PrintAndLogEx(NORMAL, "CSN: %s", sprint_hex(data, 8)); + PrintAndLogEx(NORMAL, " CSN: %s", sprint_hex(data, 8)); tagFound = true; } if (readStatus & FLAG_ICLASS_READER_CC) { @@ -547,7 +547,10 @@ int HFiClassReader(const char *Cmd, bool loop, bool verbose) { if (readStatus & FLAG_ICLASS_READER_AIA) { bool legacy = ( memcmp( (uint8_t *)(data + 8*5), "\xff\xff\xff\xff\xff\xff\xff\xff", 8) == 0 ); PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data+8*5, 8)); - PrintAndLogEx(NORMAL, " : Possible iClass %s", (legacy) ? "(legacy tag)" : "(NOT legacy tag)"); + if ( legacy ) + PrintAndLogEx(SUCCESS, " : Possible iClass (legacy tag)"); + else + PrintAndLogEx(WARNING, " : Possible iClass (NOT legacy tag)"); } if (tagFound && !loop) {