Return value of pn53x_usb_list_devices() must bool, not void*
This commit is contained in:
parent
b05ab6285d
commit
2e39e56e17
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, s
|
||||||
string[0]= '\0';
|
string[0]= '\0';
|
||||||
usb_init();
|
usb_init();
|
||||||
|
|
||||||
if ((ret= usb_find_busses() < 0)) return NULL;
|
if ((ret= usb_find_busses() < 0)) return false;
|
||||||
DBG("%d busses",ret);
|
DBG("%d busses",ret);
|
||||||
if ((ret= usb_find_devices() < 0)) return NULL;
|
if ((ret= usb_find_devices() < 0)) return false;
|
||||||
DBG("%d devices",ret);
|
DBG("%d devices",ret);
|
||||||
|
|
||||||
*pszDeviceFound= 0;
|
*pszDeviceFound= 0;
|
||||||
|
|
Loading…
Reference in a new issue