mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-31 03:50:45 -07:00
hf 15 findafi, bad loop var
This commit is contained in:
parent
51ec7c2178
commit
f53de10c60
1 changed files with 2 additions and 2 deletions
|
@ -1160,6 +1160,7 @@ static int CmdHF15FindAfi(const char *Cmd) {
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
SendCommandMIX(CMD_HF_ISO15693_FINDAFI, strtol(Cmd, NULL, 0), 0, 0, NULL, 0);
|
SendCommandMIX(CMD_HF_ISO15693_FINDAFI, strtol(Cmd, NULL, 0), 0, 0, NULL, 0);
|
||||||
|
|
||||||
|
uint32_t timeout = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
if (kbd_enter_pressed()) {
|
if (kbd_enter_pressed()) {
|
||||||
|
@ -1169,7 +1170,6 @@ static int CmdHF15FindAfi(const char *Cmd) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t timeout = 0;
|
|
||||||
if (WaitForResponseTimeout(CMD_HF_ISO15693_FINDAFI, &resp, 2000)){
|
if (WaitForResponseTimeout(CMD_HF_ISO15693_FINDAFI, &resp, 2000)){
|
||||||
if (resp.status == PM3_EOPABORTED) {
|
if (resp.status == PM3_EOPABORTED) {
|
||||||
PrintAndLogEx(DEBUG, "Button pressed, user aborted");
|
PrintAndLogEx(DEBUG, "Button pressed, user aborted");
|
||||||
|
@ -1189,7 +1189,7 @@ static int CmdHF15FindAfi(const char *Cmd) {
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
PrintAndLogEx(INFO, "Done");
|
PrintAndLogEx(INFO, "Done");
|
||||||
return resp.status; // PM3_EOPABORTED or PM3_SUCCESS
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Writes the AFI (Application Family Identifier) of a card
|
// Writes the AFI (Application Family Identifier) of a card
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue