From e5f92935a17780492df6deab36f8f02a7db77604 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 6 Dec 2017 00:17:49 +0100 Subject: [PATCH] chg: more adjustments --- armsrc/iso14443a.c | 5 ++++- client/mifarehost.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 4cbf65da9..d02ad8850 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2755,8 +2755,11 @@ void DetectNACKbug() { par[0]++; // tried all 256 possible parities without success. - if (par[0] == 0) + if (par[0] == 0) { + if ( num_nacks == 1 ) + isOK = 1; break; + } // reset the resyncs since we got a complete transaction on right time. consecutive_resyncs = 0; diff --git a/client/mifarehost.c b/client/mifarehost.c index d583bd510..eb8dc9fbe 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -886,8 +886,8 @@ int detect_classic_nackbug(bool verbose){ PrintAndLog(""); if ( verbose ) { - PrintAndLog("Num of sent auth requests : %u", auths); - PrintAndLog("Num of received NACK : %u", nacks); + PrintAndLog("Num of auth requests : %u", auths); + PrintAndLog("Num of received NACK : %u", nacks); } switch( ok ) { case -1 : if (verbose) PrintAndLog("Button pressed. Aborted."); return 0;