From d0fe1f8255369674cc699bd6ef65e5d535cb1457 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 18 Aug 2010 13:56:31 +0000 Subject: [PATCH] Fix debug trace of pn532_uart driver. --- libnfc/drivers/pn532_uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index ba00791..1474994 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -229,11 +229,10 @@ bool pn532_uart_transceive(const nfc_device_spec_t nds, const byte_t* pbtTx, con while (!uart_receive((serial_port)nds,abtRxBuf,&szRxBufLen)) { delay_ms(10); } - } - #ifdef DEBUG - PRINT_HEX("RX", abtRxBuf,szRxBufLen); + PRINT_HEX("RX", abtRxBuf,szRxBufLen); #endif + } // When the answer should be ignored, just return a successful result if(pbtRx == NULL || pszRxLen == NULL) return true;