This should fix Issue 83.

This commit is contained in:
Romuald Conty 2010-06-07 08:16:27 +00:00
parent 2e39e56e17
commit 8bac5355dd

View file

@ -178,7 +178,7 @@ static bool read_card(void)
if (!nfc_initiator_select_tag(pnd,NM_ISO14443A_106,NULL,0,&nti)) if (!nfc_initiator_select_tag(pnd,NM_ISO14443A_106,NULL,0,&nti))
{ {
printf("!\nError: tag was removed\n"); printf("!\nError: tag was removed\n");
return 1; return false;
} }
bFailure = false; bFailure = false;
} }
@ -237,7 +237,7 @@ static bool write_card(void)
if (is_first_block(uiBlock)) if (is_first_block(uiBlock))
{ {
// Skip this the first time, bFailure it means nothing (yet) // Skip this the first time, bFailure it means nothing (yet)
if (uiBlock != uiBlocks) if (uiBlock != 0)
print_success_or_failure(bFailure, &uiWriteBlocks); print_success_or_failure(bFailure, &uiWriteBlocks);
// Show if the readout went well // Show if the readout went well