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);