From b31afcfc3154820fd60d69db1296619c4b33b944 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 8 Feb 2018 12:18:40 +0100 Subject: [PATCH] fix: 'hf iclass reader' - missing CC --- client/cmdhficlass.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 1346942d0..02e21cf31 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -507,9 +507,13 @@ int CmdHFiClassSim(const char *Cmd) { int HFiClassReader(const char *Cmd, bool loop, bool verbose) { bool tagFound = false; - UsbCommand c = {CMD_READER_ICLASS, {FLAG_ICLASS_READER_CSN | FLAG_ICLASS_READER_CONF | FLAG_ICLASS_READER_AIA}}; + + uint32_t flags = FLAG_ICLASS_READER_CSN | FLAG_ICLASS_READER_CC | FLAG_ICLASS_READER_AIA | + FLAG_ICLASS_READER_CONF | FLAG_ICLASS_READER_ONLY_ONCE | + FLAG_ICLASS_READER_ONE_TRY; + + UsbCommand c = {CMD_READER_ICLASS, {flags, 0, 0}}; // loop in client not device - else on windows have a communication error - c.arg[0] |= FLAG_ICLASS_READER_ONLY_ONCE | FLAG_ICLASS_READER_ONE_TRY; UsbCommand resp; while (!ukbhit()){