From afb1c3a0f8154d75432689afb17c6a349088f4d8 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 4 Oct 2010 12:37:43 +0000 Subject: [PATCH] examples: minor enhancements --- examples/nfc-anticol.c | 4 ++-- examples/nfc-mfultralight.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/nfc-anticol.c b/examples/nfc-anticol.c index 866a1f6..dedd6ee 100644 --- a/examples/nfc-anticol.c +++ b/examples/nfc-anticol.c @@ -19,7 +19,7 @@ /** * @file nfc-anticol.c - * @brief + * @brief Generate one ISO14443-A anticollision process "by-hand" */ #ifdef HAVE_CONFIG_H @@ -179,7 +179,7 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } - printf ("\nConnected to NFC reader: %s\n\n", pnd->acName); + printf ("Connected to NFC reader: %s\n\n", pnd->acName); // Send the 7 bits request command specified in ISO 14443A (0x26) if (!transmit_bits (abtReqa, 7)) { diff --git a/examples/nfc-mfultralight.c b/examples/nfc-mfultralight.c index b74bd3e..3ef4db1 100644 --- a/examples/nfc-mfultralight.c +++ b/examples/nfc-mfultralight.c @@ -19,7 +19,7 @@ /** * @file nfc-mfultool.c - * @brief MIFARE Ultralight dump tool + * @brief MIFARE Ultralight dump/restore tool */ #ifdef HAVE_CONFIG_H @@ -180,10 +180,10 @@ main (int argc, const char *argv[]) } DBG ("Successfully opened the dump file\n"); - // Try to open the NFC reader + // Try to open the NFC device pnd = nfc_connect (NULL); if (pnd == NULL) { - ERR ("Error connecting NFC reader\n"); + ERR ("Error connecting NFC device\n"); return 1; } @@ -194,7 +194,7 @@ main (int argc, const char *argv[]) nfc_perror (pnd, "nfc_configure"); exit (EXIT_FAILURE); } - // Let the reader only try once to find a tag + // Let the device only try once to find a tag if (!nfc_configure (pnd, NDO_INFINITE_SELECT, false)) { nfc_perror (pnd, "nfc_configure"); exit (EXIT_FAILURE); @@ -213,7 +213,7 @@ main (int argc, const char *argv[]) exit (EXIT_FAILURE); } - printf ("Connected to NFC reader: %s\n", pnd->acName); + printf ("Connected to NFC device: %s\n", pnd->acName); // Try to find a MIFARE Ultralight tag if (!nfc_initiator_select_passive_target (pnd, NM_ISO14443A_106, NULL, 0, &nti)) {