From bf995b3c4ec59255aa27b34c82d82ab6020eeee7 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 30 Sep 2010 16:02:02 +0000 Subject: [PATCH] nfc-emulate-ndef: change Tx/Rx message to prevent from mixing with TX/RX from debug mode, add the first receive datas. --- examples/nfc-emulate-ndef.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/nfc-emulate-ndef.c b/examples/nfc-emulate-ndef.c index d6511a5..23515d9 100644 --- a/examples/nfc-emulate-ndef.c +++ b/examples/nfc-emulate-ndef.c @@ -51,7 +51,7 @@ transmit_bytes (const byte_t * pbtTx, const size_t szTxLen) { // Show transmitted command if (!quiet_output) { - printf ("Tx: "); + printf ("Sent data: "); print_hex (pbtTx, szTxLen); } @@ -71,7 +71,7 @@ transmit_bytes (const byte_t * pbtTx, const size_t szTxLen) // Show received answer if (!quiet_output) { - printf ("Rx: "); + printf ("Received data: "); print_hex (abtRx, szRxLen); } // Succesful transfer @@ -97,6 +97,11 @@ main (int argc, char *argv[]) return EXIT_FAILURE; } + if (!quiet_output) { + printf ("Received data: "); + print_hex (abtRx, szRxLen); + } + transmit_bytes((const byte_t*)"\x0a\x00\x6a\x87",4); transmit_bytes((const byte_t*)"\x0b\x00\x6a\x87",4); transmit_bytes((const byte_t*)"\x0a\x00\x90\x00",4);