]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed 'hf mf' command and some others
authorroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 7 Dec 2012 22:37:22 +0000 (22:37 +0000)
committerroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 7 Dec 2012 22:37:22 +0000 (22:37 +0000)
client/cmdhfepa.c
client/cmdhfmf.c
client/mifarehost.c

index c6db746c6ed52945af83698af3a5eb6cd2ee5a45..41f801e705aa83c1b1242bfe31f65549e518a853 100644 (file)
@@ -88,7 +88,7 @@ int CmdHelp(const char *Cmd)
 int CmdHFEPA(const char *Cmd)
 {
        // flush
 int CmdHFEPA(const char *Cmd)
 {
        // flush
-       while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
+       WaitForResponseTimeout(CMD_ACK,NULL,100);
 
        // parse
   CmdsParse(CommandTable, Cmd);
 
        // parse
   CmdsParse(CommandTable, Cmd);
index 5927616bf0d14367e1ba07d6786b52bda8bf6c25..cea95ff0aa420f621d9a20d17b5668eb96fc2a90 100644 (file)
@@ -1676,7 +1676,7 @@ static command_t CommandTable[] =
 int CmdHFMF(const char *Cmd)\r
 {\r
        // flush\r
 int CmdHFMF(const char *Cmd)\r
 {\r
        // flush\r
-       while (!WaitForResponseTimeout(CMD_ACK,NULL,500));\r
+       WaitForResponseTimeout(CMD_ACK,NULL,100);\r
 \r
   CmdsParse(CommandTable, Cmd);\r
   return 0;\r
 \r
   CmdsParse(CommandTable, Cmd);\r
   return 0;\r
index 22b2a328fb476f824e417ffc3c1ebc2ce0e69d35..825e06d88609b74d8dcafc6495e72b3bed1baab6 100644 (file)
@@ -65,7 +65,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo
        memset(resultKeys, 0x00, 16 * 6);\r
 \r
        // flush queue\r
        memset(resultKeys, 0x00, 16 * 6);\r
 \r
        // flush queue\r
-       while (!WaitForResponseTimeout(CMD_ACK,NULL,500));\r
+       WaitForResponseTimeout(CMD_ACK,NULL,100);\r
        \r
   UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};\r
        memcpy(c.d.asBytes, key, 6);\r
        \r
   UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};\r
        memcpy(c.d.asBytes, key, 6);\r
Impressum, Datenschutz