Merge pull request #450 from hph86/2_fix_typo

Fix typo in nfc-mfclassic
This commit is contained in:
Markus Werle 2018-10-02 12:32:45 +02:00 committed by GitHub
commit 4ae4cc86f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
//need to use the R mode. We'll trigger a warning and let them proceed.
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;
} else {
//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
print_success_or_failure(bFailure, &uiReadBlocks);
if ((! bTolerateFailures) && bFailure)
if ((!bTolerateFailures) && bFailure)
return false;
}
printf("|\n");
@ -449,7 +449,7 @@ write_card(int write_block_zero)
}
} else {
// The first block 0x00 is read only, skip this
if (uiBlock == 0 && ! write_block_zero && ! magic2)
if (uiBlock == 0 && !write_block_zero && !magic2)
continue;
@ -474,7 +474,7 @@ write_card(int write_block_zero)
}
// Show if the write went well for each block
print_success_or_failure(bFailure, &uiWriteBlocks);
if ((! bTolerateFailures) && bFailure)
if ((!bTolerateFailures) && bFailure)
return false;
}
printf("|\n");
@ -659,7 +659,7 @@ main(int argc, const char *argv[])
fileUid[0], fileUid[1], fileUid[2], fileUid[3]);
printf("Got card with UID starting as: %02x%02x%02x%02x\n",
pbtUID[0], pbtUID[1], pbtUID[2], pbtUID[3]);
if (! bForceKeyFile) {
if (!bForceKeyFile) {
printf("Aborting!\n");
nfc_close(pnd);
nfc_exit(context);