]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfcotag.c
CHG: rename a local scope variable "data"->"cmd"
[proxmark3-svn] / client / cmdlfcotag.c
index e200e834abe0e7117076e62417edc752813f1a48..1a2b2eca699cee338d4f7aa746421c0a4bda3099 100644 (file)
@@ -18,9 +18,12 @@ int CmdCOTAGRead(const char *Cmd) {
        UsbCommand c = {CMD_COTAG, {0, 0, 0}};
        clearCommandBuffer();
        SendCommand(&c);
-
-       getSamples("20000", TRUE);
-       return CmdFSKdemodAWID(Cmd);
+       if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
+               PrintAndLog("command execution time out");
+               return 1;
+       }
+       getSamples("20000", true);
+       return 0;
 }
 
 static command_t CommandTable[] = {
Impressum, Datenschutz