diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index 4d5c8bf..ffa70b6 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -113,7 +113,7 @@ arygon_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *p const char* pcPort; int iDevice = 0; - while( pcPort = pcPorts[iDevice++] ) { + while( (pcPort = pcPorts[iDevice++]) ) { sp = uart_open(pcPort); DBG("Trying to find ARYGON device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED); diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 982cd82..657cc1d 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -88,7 +88,7 @@ pn532_uart_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, size_ const char* pcPort; int iDevice = 0; - while( pcPort = pcPorts[iDevice++] ) { + while( (pcPort = pcPorts[iDevice++]) ) { sp = uart_open(pcPort); DBG("Trying to find PN532 device on serial port: %s at %d bauds.", pcPort, SERIAL_DEFAULT_PORT_SPEED);