]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Reverted previous change to , I made it no longer cache previous results
authorMartin Holst Swende <martin@swende.se>
Mon, 20 Jul 2015 21:17:55 +0000 (23:17 +0200)
committerMartin Holst Swende <martin@swende.se>
Mon, 20 Jul 2015 21:17:55 +0000 (23:17 +0200)
client/cmdhw.c

index 05ad0c9f482f5072616cfdb07357a3b6a9fe52b8..7218f3e9ab33b60508f82d1451ff5a91f6453d1e 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) && Cmd != NULL) {
                PrintAndLog("Prox/RFID mark3 RFID instrument");
                PrintAndLog((char*)resp.d.asBytes);
                lookupChipID(resp.arg[0], resp.arg[1]);
        }
-       
+
        return 0;
 }
 
Impressum, Datenschutz