Skip to content

Commit

Permalink
hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
gelotus committed Jun 25, 2020
1 parent 2b21d87 commit 7a5e654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/nfc-mfclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static bool is_directwrite(bool test_write)
printf(" Original UID: %02x%02x%02x%02x\n",
original_b0[0], original_b0[1], original_b0[2], original_b0[3]);
} else {
printf("!\nError: unable to read block 0x%02x\n", 0);
printf("!\nError: unable to read block 0x00\n");
return false;
}

Expand All @@ -654,7 +654,7 @@ static bool is_directwrite(bool test_write)
printf(" Attempt to write Block 0 ...\n");
memcpy(mp.mpd.abtData, original_b0, sizeof(original_b0));
if (!nfc_initiator_mifare_cmd(pnd, MC_WRITE, 0, &mp)) {
printf("Failure to write to data block %i\n", 0);
printf("Failure to write to data block 0\n");
return false;
}
printf(" Block 0 written successfully\n");
Expand Down

0 comments on commit 7a5e654

Please sign in to comment.