]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
Merge branch 'master' of https://github.com/Proxmark/proxmark3
[proxmark3-svn] / client / cmdlf.c
index 136b05334a5e0446a6be3e7cf15decea79d15ecb..849b96efdabff4deecb7d9f8cfd20a2025c63c80 100644 (file)
@@ -414,7 +414,6 @@ int CmdLFSetConfig(const char *Cmd)
        uint8_t cmdp =0;
        while(param_getchar(Cmd, cmdp) != 0x00)
        {
-               PrintAndLog("working %c", param_getchar(Cmd, cmdp));
                switch(param_getchar(Cmd, cmdp))
                {
                case 'h':
@@ -489,7 +488,12 @@ int CmdLFRead(const char *Cmd)
        //And ship it to device
        UsbCommand c = {CMD_ACQUIRE_RAW_ADC_SAMPLES_125K};
        SendCommand(&c);
-       WaitForResponse(CMD_ACK,NULL);
+       //WaitForResponse(CMD_ACK,NULL);        
+       if ( !WaitForResponseTimeout(CMD_ACK,NULL,2500) ) {
+               PrintAndLog("command execution time out");
+               return 1;
+       }
+
        return 0;
 }
 
Impressum, Datenschutz