]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhw.c
Merge remote-tracking branch 'upstream/master'
[proxmark3-svn] / client / cmdhw.c
index 78695346d3e20b00f118a1671ff6bdac8a1c88ba..2b6f95187512a16c0e7fa8e9fda265d2aff457ad 100644 (file)
@@ -404,13 +404,18 @@ int CmdTune(const char *Cmd)
 
 int CmdVersion(const char *Cmd)
 {
-  UsbCommand c = {CMD_VERSION};
-  UsbCommand resp;
-  SendCommand(&c);
-  if (WaitForResponseTimeout(CMD_ACK,&resp,1000)) {
-      lookupChipID(resp.arg[0], resp.arg[1]);
-  }
-  return 0;
+
+       UsbCommand c = {CMD_VERSION};
+       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;
 }
 
 static command_t CommandTable[] = 
Impressum, Datenschutz