mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
changed - now is able to interrupt search with <enter>
This commit is contained in:
parent
71c64337e1
commit
96ae77caf8
1 changed files with 6 additions and 0 deletions
|
@ -536,6 +536,12 @@ int EMVSearch(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldON,
|
|||
int res = 0;
|
||||
int retrycnt = 0;
|
||||
for (int i = 0; i < ARRAYLEN(AIDlist); i ++) {
|
||||
|
||||
if (kbd_enter_pressed()) {
|
||||
PrintAndLogEx(INFO, "user aborted...");
|
||||
break;
|
||||
}
|
||||
|
||||
param_gethex_to_eol(AIDlist[i].aid, 0, aidbuf, sizeof(aidbuf), &aidlen);
|
||||
res = EMVSelect(channel, (i == 0) ? ActivateField : false, true, aidbuf, aidlen, data, sizeof(data), &datalen, &sw, tlv);
|
||||
// retry if error and not returned sw error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue