From d019f9729defdd641c547c1a8061bb92dfe29405 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 12 Mar 2013 12:23:15 +0100 Subject: [PATCH] nfc-anticol: fix ATS length --- examples/nfc-anticol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nfc-anticol.c b/examples/nfc-anticol.c index b8368c3..83d59e6 100644 --- a/examples/nfc-anticol.c +++ b/examples/nfc-anticol.c @@ -114,11 +114,11 @@ transmit_bytes(const uint8_t *pbtTx, const size_t szTx) // Transmit the command bytes if ((res = nfc_initiator_transceive_bytes(pnd, pbtTx, szTx, abtRx, sizeof(abtRx), 0)) < 0) return false; - + szRx = res; // Show received answer if (!quiet_output) { printf("Received bits: "); - print_hex(abtRx, res); + print_hex(abtRx, szRx); } // Succesful transfer return true;