From 63262331c669227c3a440614951dc16fab1d4e0d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 17 Feb 2010 14:57:03 +0000 Subject: [PATCH] Suppress warnings due to unused variable. --- src/lib/drivers/pn532_uart.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/drivers/pn532_uart.c b/src/lib/drivers/pn532_uart.c index 982bfff0..77202730 100644 --- a/src/lib/drivers/pn532_uart.c +++ b/src/lib/drivers/pn532_uart.c @@ -87,19 +87,19 @@ pn532_uart_pick_device (void) bool pn532_uart_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound) { - serial_port sp; - char acConnect[BUFFER_LENGTH]; - int iDevice; - - *pszDeviceFound = 0; - /* @note: Due to UART bus we can't know if its really a pn532 without * sending some PN53x commands. But using this way to probe devices, we can * have serious problem with other device on this bus */ #ifndef SERIAL_AUTOPROBE_ENABLED + *pszDeviceFound = 0; INFO("%s", "Sorry, serial auto-probing have been disabled at compile time."); return false; #else /* SERIAL_AUTOPROBE_ENABLED */ + *pszDeviceFound = 0; + + serial_port sp; + char acConnect[BUFFER_LENGTH]; + int iDevice; // I have no idea how MAC OS X deals with multiple devices, so a quick workaround for (iDevice=0; iDevice