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:
parent
b53b623c38
commit
bf995b3c4e
1 changed files with 7 additions and 2 deletions
|
@ -51,7 +51,7 @@ transmit_bytes (const byte_t * pbtTx, const size_t szTxLen)
|
||||||
{
|
{
|
||||||
// Show transmitted command
|
// Show transmitted command
|
||||||
if (!quiet_output) {
|
if (!quiet_output) {
|
||||||
printf ("Tx: ");
|
printf ("Sent data: ");
|
||||||
print_hex (pbtTx, szTxLen);
|
print_hex (pbtTx, szTxLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ transmit_bytes (const byte_t * pbtTx, const size_t szTxLen)
|
||||||
|
|
||||||
// Show received answer
|
// Show received answer
|
||||||
if (!quiet_output) {
|
if (!quiet_output) {
|
||||||
printf ("Rx: ");
|
printf ("Received data: ");
|
||||||
print_hex (abtRx, szRxLen);
|
print_hex (abtRx, szRxLen);
|
||||||
}
|
}
|
||||||
// Succesful transfer
|
// Succesful transfer
|
||||||
|
@ -97,6 +97,11 @@ main (int argc, char *argv[])
|
||||||
return EXIT_FAILURE;
|
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*)"\x0a\x00\x6a\x87",4);
|
||||||
transmit_bytes((const byte_t*)"\x0b\x00\x6a\x87",4);
|
transmit_bytes((const byte_t*)"\x0b\x00\x6a\x87",4);
|
||||||
transmit_bytes((const byte_t*)"\x0a\x00\x90\x00",4);
|
transmit_bytes((const byte_t*)"\x0a\x00\x90\x00",4);
|
||||||
|
|
Loading…
Add table
Reference in a new issue