From 84022807a843d02c7214e570a28fe071d7818a75 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 17 Jul 2019 12:20:04 +0300 Subject: [PATCH] fix rare emv search behavior --- client/emv/emvcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/emv/emvcore.c b/client/emv/emvcore.c index 178a18d58..6657f2ce3 100644 --- a/client/emv/emvcore.c +++ b/client/emv/emvcore.c @@ -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);