Skip to content

Commit

Permalink
Suppress warnings due to unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
neomilium committed Feb 17, 2010
1 parent d97d017 commit 6326233
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/drivers/pn532_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<DRIVERS_MAX_DEVICES; iDevice++)
Expand Down

0 comments on commit 6326233

Please sign in to comment.