From 8bac5355dd6e36664f1b61d4518b37e0dc9b0a8d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 7 Jun 2010 08:16:27 +0000 Subject: [PATCH] This should fix Issue 83. --- examples/nfc-mfclassic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-mfclassic.c b/examples/nfc-mfclassic.c index 457f7bd..aacbfe0 100644 --- a/examples/nfc-mfclassic.c +++ b/examples/nfc-mfclassic.c @@ -178,7 +178,7 @@ static bool read_card(void) if (!nfc_initiator_select_tag(pnd,NM_ISO14443A_106,NULL,0,&nti)) { printf("!\nError: tag was removed\n"); - return 1; + return false; } bFailure = false; } @@ -237,7 +237,7 @@ static bool write_card(void) if (is_first_block(uiBlock)) { // Skip this the first time, bFailure it means nothing (yet) - if (uiBlock != uiBlocks) + if (uiBlock != 0) print_success_or_failure(bFailure, &uiWriteBlocks); // Show if the readout went well