Merge the libnfc-less-bitutils-more-ponies branch into trunk.

This commit is contained in:
Romain Tartiere 2010-04-26 13:13:13 +00:00
commit b28abd77b0
23 changed files with 330 additions and 65 deletions

View file

@ -38,7 +38,7 @@
#include <nfc/nfc.h>
#include "mifareultag.h"
#include "bitutils.h"
#include "nfc-utils.h"
static nfc_device_t* pnd;
static nfc_target_info_t nti;
@ -215,9 +215,9 @@ int main(int argc, const char* argv[])
}
// Get the info from the current tag
// Get the info from the current tag (UID is stored little-endian)
pbtUID = nti.nai.abtUid;
printf("Found MIFARE Ultralight card with uid: %08x\n", swap_endian32(pbtUID));
printf("Found MIFARE Ultralight card with uid: %02x%02x%02x%02x\n", pbtUID[3], pbtUID[2], pbtUID[1], pbtUID[0]);
if (bReadAction)
{