Commit 94617366 authored by Philippe Teuwen's avatar Philippe Teuwen

nfc-mfclassic: abort if expected UID is not matching real card

parent bb7b0568
......@@ -559,6 +559,12 @@ main(int argc, const char *argv[])
if (memcmp(pbtUID, fileUid, 4) != 0) {
printf("Expected MIFARE Classic card with UID starting as: %02x%02x%02x%02x\n",
fileUid[0], fileUid[1], fileUid[2], fileUid[3]);
printf("Got card with UID starting as: %02x%02x%02x%02x\n",
pbtUID[0], pbtUID[1], pbtUID[2], pbtUID[3]);
printf("Found MIFARE Classic card:\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment