From b978c45a11a71a502f26ca416381492124d62162 Mon Sep 17 00:00:00 2001 From: Adam Laurie Date: Sun, 25 May 2014 16:39:47 +0100 Subject: [PATCH] tolerate errors when writing as well as reading --- utils/nfc-mfclassic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index 1242886..55809fc 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -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; }