mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 11:52:59 +08:00
chg: more adjustments
This commit is contained in:
parent
0c0e20eb06
commit
e5f92935a1
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue