Merge pull request #262 from merlokk/fix_sea

fix rare emv search behavior
This commit is contained in:
Oleg Moiseenko 2019-07-17 12:20:27 +03:00 committed by GitHub
commit 2bd1be9aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -538,8 +538,8 @@ int EMVSearch(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldON,
if (++retrycnt < 3) {
i--;
} else {
// (1) - card select error, proxmark error OR (200) - result length = 0
if (res == 1 || res == 200) {
// (1) - card select error, (4) reply timeout, (200) - result length = 0
if (res == 1 || res == 4 ||res == 200) {
if (!LeaveFieldON)
DropFieldEx(channel);