add nfc_device_get_connstring() function and nfc-probe example to show devices connection strings

This commit is contained in:
Romuald Conty 2012-01-18 13:17:01 +00:00
parent 39216f9d7c
commit b366b8c027
10 changed files with 159 additions and 19 deletions

View file

@ -85,8 +85,8 @@ pn53x_init(struct nfc_device *pnd)
// Add the firmware revision to the device name
char *pcName;
pcName = strdup (pnd->acName);
snprintf (pnd->acName, DEVICE_NAME_LENGTH - 1, "%s - %s", pcName, abtFirmwareText);
pcName = strdup (pnd->name);
snprintf (pnd->name, DEVICE_NAME_LENGTH - 1, "%s - %s", pcName, abtFirmwareText);
free (pcName);
return NFC_SUCCESS;
}