Fix some more cc warnings.
This commit is contained in:
parent
4669279589
commit
19672806d2
2 changed files with 6 additions and 6 deletions
|
@ -96,7 +96,7 @@ nfc_device_t* arygon_connect(const nfc_device_desc_t* pndd)
|
|||
|
||||
if( pndd == NULL ) {
|
||||
#ifndef SERIAL_AUTOPROBE_ENABLED
|
||||
INFO("Sorry, serial auto-probing have been disabled at compile time.");
|
||||
INFO("%s", "Sorry, serial auto-probing have been disabled at compile time.");
|
||||
return NULL;
|
||||
#else /* SERIAL_AUTOPROBE_ENABLED */
|
||||
DBG("Trying to find ARYGON device on serial port: %s# at %d bauds.",SERIAL_STRING, SERIAL_DEFAULT_PORT_SPEED);
|
||||
|
|
|
@ -87,20 +87,20 @@ 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;
|
||||
|
||||
/* @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 */
|
||||
*pszDeviceFound = 0;
|
||||
|
||||
#ifndef SERIAL_AUTOPROBE_ENABLED
|
||||
INFO("Sorry, serial auto-probing have been disabled at compile time.");
|
||||
INFO("%s", "Sorry, serial auto-probing have been disabled at compile time.");
|
||||
return false;
|
||||
#else /* SERIAL_AUTOPROBE_ENABLED */
|
||||
|
||||
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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue