From f5a95b1c5736f2462d8eecddf417de6a205a11d2 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 27 Jul 2010 08:17:48 +0000 Subject: [PATCH] Rename MC_STORE to MC_RESTORE. It's easy now that the macro is defined in the libfreefare's code and not the libnfc's one. --- libfreefare/mifare_classic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libfreefare/mifare_classic.c b/libfreefare/mifare_classic.c index c3f8e5c..eafd1ac 100644 --- a/libfreefare/mifare_classic.c +++ b/libfreefare/mifare_classic.c @@ -69,7 +69,7 @@ #define MC_TRANSFER 0xB0 #define MC_DECREMENT 0xC0 #define MC_INCREMENT 0xC1 -#define MC_STORE 0xC2 +#define MC_RESTORE 0xC2 union mifare_classic_block { unsigned char data[16]; @@ -430,8 +430,7 @@ mifare_classic_restore (MifareTag tag, const MifareClassicBlockNumber block) * meaningless but required (thus left uninitialized). */ unsigned char command[6]; - /* XXX Should be MC_RESTORE according to the MIFARE documentation. */ - command[0] = MC_STORE; + command[0] = MC_RESTORE; command[1] = block; // Send command