chg: adjustments

This commit is contained in:
iceman1001 2017-12-06 00:12:15 +01:00
commit 0c0e20eb06
2 changed files with 5 additions and 2 deletions

View file

@ -2595,8 +2595,9 @@ void DetectNACKbug() {
for (i = 0; true; ++i) {
received_nack = false;
if ((i==10) && (num_nacks == i)) {
// Cards always leaks a NACK, no matter the parity
if ((i==10) && (num_nacks == i)) {
isOK = 2;
break;
}

View file

@ -883,8 +883,10 @@ int detect_classic_nackbug(bool verbose){
int32_t ok = resp.arg[0];
uint32_t nacks = resp.arg[1];
uint32_t auths = resp.arg[2];
PrintAndLog("");
if ( verbose ) {
PrintAndLog("\nNum of sent auth requests : %u", auths);
PrintAndLog("Num of sent auth requests : %u", auths);
PrintAndLog("Num of received NACK : %u", nacks);
}
switch( ok ) {