changed - now is able to interrupt search with <enter>
This commit is contained in:
@@ -536,6 +536,12 @@ int EMVSearch(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldON,
|
|||||||
int res = 0;
|
int res = 0;
|
||||||
int retrycnt = 0;
|
int retrycnt = 0;
|
||||||
for (int i = 0; i < ARRAYLEN(AIDlist); i ++) {
|
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);
|
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);
|
res = EMVSelect(channel, (i == 0) ? ActivateField : false, true, aidbuf, aidlen, data, sizeof(data), &datalen, &sw, tlv);
|
||||||
// retry if error and not returned sw error
|
// retry if error and not returned sw error
|
||||||
|
|||||||
Reference in New Issue
Block a user