From d2192fb85024c61957f44b64ed4d3fc018216b08 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 23 Feb 2011 15:14:14 +0000 Subject: [PATCH] nfc-mfclassic: UID was shown reverse-ordered. (Fixes Issue 146) --- examples/nfc-mfclassic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/nfc-mfclassic.c b/examples/nfc-mfclassic.c index e3b4d0c..870d627 100644 --- a/examples/nfc-mfclassic.c +++ b/examples/nfc-mfclassic.c @@ -477,15 +477,15 @@ main (int argc, const char *argv[]) // Compare if key dump UID is the same as the current tag UID if (memcmp (nt.nti.nai.abtUid, pbtUID, 4) != 0) { - printf ("Expected MIFARE Classic %ck card with UID: %02x%02x%02x%02x\n", b4K ? '4' : '1', pbtUID[3], pbtUID[2], - pbtUID[1], pbtUID[0]); + printf ("Expected MIFARE Classic %ck card with UID: %02x%02x%02x%02x\n", b4K ? '4' : '1', pbtUID[0], pbtUID[1], + pbtUID[2], pbtUID[3]); } } // Get the info from the current tag pbtUID = nt.nti.nai.abtUid; b4K = (nt.nti.nai.abtAtqa[1] == 0x02); - printf ("Found MIFARE Classic %ck card with UID: %02x%02x%02x%02x\n", b4K ? '4' : '1', pbtUID[3], pbtUID[2], - pbtUID[1], pbtUID[0]); + printf ("Found MIFARE Classic %ck card with UID: %02x%02x%02x%02x\n", b4K ? '4' : '1', pbtUID[0], pbtUID[1], + pbtUID[2], pbtUID[3]); uiBlocks = (b4K) ? 0xff : 0x3f;