From: roel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Date: Fri, 7 Dec 2012 22:37:22 +0000 (+0000)
Subject: fixed 'hf mf' command and some others
X-Git-Tag: v1.0.0~130^2~21
X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/7dd1908b241b3a9e5764112bd822472f80287073?ds=inline

fixed 'hf mf' command and some others
---

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);