X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fefb7f5376bb62901aac7494d42fb78e5ea5983a..618c220c383db2b9cde32261e90a008b0fd2b736:/client/cmdhf14a.c diff --git a/client/cmdhf14a.c b/client/cmdhf14a.c index e3f1a5f1..09dcd34e 100644 --- a/client/cmdhf14a.c +++ b/client/cmdhf14a.c @@ -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);