Merge pull request #450 from hph86/2_fix_typo
Fix typo in nfc-mfclassic
This commit is contained in:
commit
4ae4cc86f8
1 changed files with 19 additions and 19 deletions
|
@ -316,7 +316,7 @@ read_card(int read_unlocked)
|
||||||
//If the user is attempting an unlocked read, but has a direct-write type magic card, they don't
|
//If the user is attempting an unlocked read, but has a direct-write type magic card, they don't
|
||||||
//need to use the R mode. We'll trigger a warning and let them proceed.
|
//need to use the R mode. We'll trigger a warning and let them proceed.
|
||||||
if (magic2) {
|
if (magic2) {
|
||||||
printf("Note: This card does not require an unlocked write (R) \n");
|
printf("Note: This card does not require an unlocked read (R) \n");
|
||||||
read_unlocked = 0;
|
read_unlocked = 0;
|
||||||
} else {
|
} else {
|
||||||
//If User has requested an unlocked read, but we're unable to unlock the card, we'll error out.
|
//If User has requested an unlocked read, but we're unable to unlock the card, we'll error out.
|
||||||
|
@ -375,7 +375,7 @@ read_card(int read_unlocked)
|
||||||
}
|
}
|
||||||
// Show if the readout went well for each block
|
// Show if the readout went well for each block
|
||||||
print_success_or_failure(bFailure, &uiReadBlocks);
|
print_success_or_failure(bFailure, &uiReadBlocks);
|
||||||
if ((! bTolerateFailures) && bFailure)
|
if ((!bTolerateFailures) && bFailure)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("|\n");
|
printf("|\n");
|
||||||
|
@ -449,7 +449,7 @@ write_card(int write_block_zero)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// The first block 0x00 is read only, skip this
|
// The first block 0x00 is read only, skip this
|
||||||
if (uiBlock == 0 && ! write_block_zero && ! magic2)
|
if (uiBlock == 0 && !write_block_zero && !magic2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ write_card(int write_block_zero)
|
||||||
}
|
}
|
||||||
// Show if the write went well for each block
|
// Show if the write went well for each block
|
||||||
print_success_or_failure(bFailure, &uiWriteBlocks);
|
print_success_or_failure(bFailure, &uiWriteBlocks);
|
||||||
if ((! bTolerateFailures) && bFailure)
|
if ((!bTolerateFailures) && bFailure)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
printf("|\n");
|
printf("|\n");
|
||||||
|
@ -659,7 +659,7 @@ main(int argc, const char *argv[])
|
||||||
fileUid[0], fileUid[1], fileUid[2], fileUid[3]);
|
fileUid[0], fileUid[1], fileUid[2], fileUid[3]);
|
||||||
printf("Got card with UID starting as: %02x%02x%02x%02x\n",
|
printf("Got card with UID starting as: %02x%02x%02x%02x\n",
|
||||||
pbtUID[0], pbtUID[1], pbtUID[2], pbtUID[3]);
|
pbtUID[0], pbtUID[1], pbtUID[2], pbtUID[3]);
|
||||||
if (! bForceKeyFile) {
|
if (!bForceKeyFile) {
|
||||||
printf("Aborting!\n");
|
printf("Aborting!\n");
|
||||||
nfc_close(pnd);
|
nfc_close(pnd);
|
||||||
nfc_exit(context);
|
nfc_exit(context);
|
||||||
|
|
Loading…
Reference in a new issue