]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhw.c
Merge remote-tracking branch 'upstream/master'
[proxmark3-svn] / client / cmdhw.c
index 05ad0c9f482f5072616cfdb07357a3b6a9fe52b8..2b6f95187512a16c0e7fa8e9fda265d2aff457ad 100644 (file)
@@ -406,21 +406,15 @@ int CmdVersion(const char *Cmd)
 {
 
        UsbCommand c = {CMD_VERSION};
-       static UsbCommand resp = {0, {0, 0, 0}};
-       
-       if (resp.arg[0] == 0 && resp.arg[1] == 0) { // no cached information available
-               SendCommand(&c);
-               if (WaitForResponseTimeout(CMD_ACK,&resp,1000) && Cmd != NULL) {
-                       PrintAndLog("Prox/RFID mark3 RFID instrument");
-                       PrintAndLog((char*)resp.d.asBytes);
-                       lookupChipID(resp.arg[0], resp.arg[1]);
-               }
-       } else if (Cmd != NULL) {
+       UsbCommand resp = {0, {0, 0, 0}};
+
+       SendCommand(&c);
+       if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
                PrintAndLog("Prox/RFID mark3 RFID instrument");
                PrintAndLog((char*)resp.d.asBytes);
                lookupChipID(resp.arg[0], resp.arg[1]);
        }
-       
+
        return 0;
 }
 
Impressum, Datenschutz