fix what looks like accidental editor mangling so it can compile

This commit is contained in:
Adam Laurie 2009-11-30 20:18:09 +00:00
parent 3ff80e55c4
commit a3431c8e4c

View file

@ -68,7 +68,7 @@ bool read_card()
} }
// Try to read out the data block // Try to read out the data block
if (nfc_initiator_mifare_cmd(pdi,MC_READ,page,&mp)) if (nfc_initiator_mifare_cmd(pnd,MC_READ,page,&mp))
{ {
memcpy(mtDump.amb[page / 4].mbd.abtData, mp.mpd.abtData, 16); memcpy(mtDump.amb[page / 4].mbd.abtData, mp.mpd.abtData, 16);
} else { } else {
@ -76,7 +76,7 @@ bool read_card()
break; break;
} }
} }
return bSuccess; //return bSuccess;
print_success_or_failure(bFailure, &uiReadBlocks); print_success_or_failure(bFailure, &uiReadBlocks);
printf("|\n"); printf("|\n");
printf("Done, %d of %d blocks read.\n", uiReadBlocks, uiBlocks+1); printf("Done, %d of %d blocks read.\n", uiReadBlocks, uiBlocks+1);
@ -90,6 +90,7 @@ bool write_card()
uint32_t uiBlock = 0; uint32_t uiBlock = 0;
int page; int page;
bool bFailure = false; bool bFailure = false;
uint32_t uiWriteBlocks = 0;
for (page = 0x4; page <= 0xF; page++) { for (page = 0x4; page <= 0xF; page++) {
// Show if the readout went well // Show if the readout went well