]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf14a.c
small fixes in ReaderIso14443a() (#446)
[proxmark3-svn] / client / cmdhf14a.c
index e3f1a5f17cf7d4cf7a2546149f62507a289899b0..09dcd34e8cef09a1debdd6a79a2865d2b6907161 100644 (file)
@@ -732,8 +732,17 @@ static void waitCmd(uint8_t iSelect)
 
     if (WaitForResponseTimeout(CMD_ACK,&resp,1500)) {
         recv = resp.d.asBytes;
-        uint8_t iLen = iSelect ? resp.arg[1] : resp.arg[0];
-        PrintAndLog("received %i octets", iLen);
+        uint8_t iLen = resp.arg[0];
+               if (iSelect){
+                       iLen = resp.arg[1];
+                       if (iLen){
+                               PrintAndLog("Card selected. UID[%i]:", iLen);
+                       } else {
+                               PrintAndLog("Can't select card.");
+                       }
+               } else {
+                       PrintAndLog("received %i bytes:", iLen);
+               }
         if(!iLen)
             return;
         hexout = (char *)malloc(iLen * 3 + 1);
Impressum, Datenschutz