mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-30 03:29:01 -07:00
fix timeout for hf 15 info/reader
This commit is contained in:
parent
b3348a74e9
commit
b12727349b
1 changed files with 19 additions and 20 deletions
|
@ -517,11 +517,6 @@ static bool getUID(bool loop, uint8_t *buf) {
|
||||||
uint8_t reply = 1;
|
uint8_t reply = 1;
|
||||||
|
|
||||||
while (kbd_enter_pressed() == false) {
|
while (kbd_enter_pressed() == false) {
|
||||||
|
|
||||||
// don't give up the at the first try
|
|
||||||
uint8_t retry = 3;
|
|
||||||
while (retry--) {
|
|
||||||
|
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommandMIX(CMD_HF_ISO15693_COMMAND, sizeof(data), fast, reply, data, sizeof(data));
|
SendCommandMIX(CMD_HF_ISO15693_COMMAND, sizeof(data), fast, reply, data, sizeof(data));
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
|
@ -539,12 +534,16 @@ static bool getUID(bool loop, uint8_t *buf) {
|
||||||
PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s"), iso15693_sprintUID(NULL, buf));
|
PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s"), iso15693_sprintUID(NULL, buf));
|
||||||
PrintAndLogEx(SUCCESS, "TYPE: " _YELLOW_("%s"), getTagInfo_15(buf));
|
PrintAndLogEx(SUCCESS, "TYPE: " _YELLOW_("%s"), getTagInfo_15(buf));
|
||||||
|
|
||||||
if (loop == false)
|
if (loop == false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (loop == false) {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue