mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-17 18:50:32 +08:00
chg: don't blindly trust other ppls changes
This commit is contained in:
parent
b5842e8c1b
commit
59fbf1e354
1 changed files with 6 additions and 6 deletions
|
@ -726,19 +726,19 @@ static void waitCmd(uint8_t iSelect) {
|
|||
uint16_t len = 0;
|
||||
|
||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
|
||||
uint8_t iLen = resp.arg[0];
|
||||
len = (resp.arg[0] & 0xFFFF);
|
||||
if (iSelect){
|
||||
iLen = resp.arg[1];
|
||||
if (iLen){
|
||||
PrintAndLog("Card selected. UID[%i]:", iLen);
|
||||
len = (resp.arg[1] & 0xFFFF);
|
||||
if (len){
|
||||
PrintAndLog("Card selected. UID[%i]:", len);
|
||||
} else {
|
||||
PrintAndLog("Can't select card.");
|
||||
}
|
||||
} else {
|
||||
PrintAndLog("received %i bytes:", iLen);
|
||||
PrintAndLog("received %i bytes:", len);
|
||||
}
|
||||
|
||||
if(!len)
|
||||
if (!len)
|
||||
return;
|
||||
|
||||
PrintAndLog("%s", sprint_hex(resp.d.asBytes, len) );
|
||||
|
|
Loading…
Reference in a new issue