]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfepa.c
fixed stupid 64-bit formatting for x86/amd64 and unix/windows - part2
[proxmark3-svn] / client / cmdhfepa.c
index 62680eff529c6a71f451e2e09dca6eaef410acdd..6588c393b618272a35667bdc31428e0fe13a07e6 100644 (file)
@@ -9,12 +9,13 @@
 //-----------------------------------------------------------------------------
 
 #include "util.h"
-#include "proxusb.h"
+//#include "proxusb.h"
 #include "proxmark3.h"
 #include "ui.h"
 #include "cmdparser.h"
 #include "common.h"
 #include "cmdmain.h"
+#include "sleep.h"
 
 #include "cmdhfepa.h"
 
@@ -30,13 +31,13 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
        // delay between requests
        unsigned int d = 0;
        
-       sscanf(Cmd, "%hhu %u %u", &m, &n, &d);
+       sscanf(Cmd, "%"hhu" %u %u", &m, &n, &d);
        
        // values are expected to be > 0
        m = m > 0 ? m : 1;
        n = n > 0 ? n : 1;
 
-       PrintAndLog("Collecting %u %hhu-byte nonces", n, m);
+       PrintAndLog("Collecting %u %"hhu"-byte nonces", n, m);
        PrintAndLog("Start: %u", time(NULL));
        // repeat n times
        for (unsigned int i = 0; i < n; i++) {
@@ -87,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);
Impressum, Datenschutz