Fix minor compilation warnings

This commit is contained in:
Romuald Conty 2010-08-20 10:42:31 +00:00
parent 5b0589c381
commit 6a6ae42a97
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ arygon_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *p
const char* pcPort; const char* pcPort;
int iDevice = 0; int iDevice = 0;
while( pcPort = pcPorts[iDevice++] ) { while( (pcPort = pcPorts[iDevice++]) ) {
sp = uart_open(pcPort); sp = uart_open(pcPort);
DBG("Trying to find ARYGON device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED); DBG("Trying to find ARYGON device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED);

View file

@ -88,7 +88,7 @@ pn532_uart_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_
const char* pcPort; const char* pcPort;
int iDevice = 0; int iDevice = 0;
while( pcPort = pcPorts[iDevice++] ) { while( (pcPort = pcPorts[iDevice++]) ) {
sp = uart_open(pcPort); sp = uart_open(pcPort);
DBG("Trying to find PN532 device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED); DBG("Trying to find PN532 device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED);