chg: more adjustments

This commit is contained in:
iceman1001 2017-12-06 00:17:49 +01:00
parent 0c0e20eb06
commit e5f92935a1
2 changed files with 6 additions and 3 deletions

View file

@ -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;

View file

@ -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;