From 7dd1908b241b3a9e5764112bd822472f80287073 Mon Sep 17 00:00:00 2001 From: "roel@libnfc.org" Date: Fri, 7 Dec 2012 22:37:22 +0000 Subject: [PATCH] fixed 'hf mf' command and some others --- client/cmdhfepa.c | 2 +- client/cmdhfmf.c | 2 +- client/mifarehost.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index c6db746c..41f801e7 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -88,7 +88,7 @@ int CmdHelp(const char *Cmd) int CmdHFEPA(const char *Cmd) { // flush - while (!WaitForResponseTimeout(CMD_ACK,NULL,500)); + WaitForResponseTimeout(CMD_ACK,NULL,100); // parse CmdsParse(CommandTable, Cmd); diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 5927616b..cea95ff0 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1676,7 +1676,7 @@ static command_t CommandTable[] = int CmdHFMF(const char *Cmd) { // flush - while (!WaitForResponseTimeout(CMD_ACK,NULL,500)); + WaitForResponseTimeout(CMD_ACK,NULL,100); CmdsParse(CommandTable, Cmd); return 0; diff --git a/client/mifarehost.c b/client/mifarehost.c index 22b2a328..825e06d8 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -65,7 +65,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo memset(resultKeys, 0x00, 16 * 6); // flush queue - while (!WaitForResponseTimeout(CMD_ACK,NULL,500)); + WaitForResponseTimeout(CMD_ACK,NULL,100); UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}}; memcpy(c.d.asBytes, key, 6); -- 2.39.2