chg: more adjustments
This commit is contained in:
@@ -2755,8 +2755,11 @@ void DetectNACKbug() {
|
|||||||
par[0]++;
|
par[0]++;
|
||||||
|
|
||||||
// tried all 256 possible parities without success.
|
// tried all 256 possible parities without success.
|
||||||
if (par[0] == 0)
|
if (par[0] == 0) {
|
||||||
|
if ( num_nacks == 1 )
|
||||||
|
isOK = 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// reset the resyncs since we got a complete transaction on right time.
|
// reset the resyncs since we got a complete transaction on right time.
|
||||||
consecutive_resyncs = 0;
|
consecutive_resyncs = 0;
|
||||||
|
|||||||
@@ -886,8 +886,8 @@ int detect_classic_nackbug(bool verbose){
|
|||||||
PrintAndLog("");
|
PrintAndLog("");
|
||||||
|
|
||||||
if ( verbose ) {
|
if ( verbose ) {
|
||||||
PrintAndLog("Num of sent auth requests : %u", auths);
|
PrintAndLog("Num of auth requests : %u", auths);
|
||||||
PrintAndLog("Num of received NACK : %u", nacks);
|
PrintAndLog("Num of received NACK : %u", nacks);
|
||||||
}
|
}
|
||||||
switch( ok ) {
|
switch( ok ) {
|
||||||
case -1 : if (verbose) PrintAndLog("Button pressed. Aborted."); return 0;
|
case -1 : if (verbose) PrintAndLog("Button pressed. Aborted."); return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user