]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
add: timeouts for "lf read"
[proxmark3-svn] / client / cmdlf.c
index 136b05334a5e0446a6be3e7cf15decea79d15ecb..8dd944cb06859e213d92f17180f1a8fbf1924e44 100644 (file)
@@ -489,7 +489,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