mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-25 19:26:35 +00:00
nfc-emulate-ndef: change Tx/Rx message to prevent from mixing with TX/RX from debug mode, add the first receive datas.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user