Skip to content

Commit

Permalink
tolerate errors when writing as well as reading
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamLaurie committed May 25, 2014
1 parent bb9babb commit b978c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nfc-mfclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ write_card(int write_block_zero)
fflush(stdout);

// Try to authenticate for the current sector
if (!write_block_zero && !authenticate(uiBlock)) {
if (!write_block_zero && !authenticate(uiBlock) && !bTolerateFailures) {
printf("!\nError: authentication failed for block %02x\n", uiBlock);
return false;
}
Expand Down

0 comments on commit b978c45

Please sign in to comment.