add nfc_device_get_connstring() function and nfc-probe example to show devices connection strings
This commit is contained in:
parent
39216f9d7c
commit
b366b8c027
10 changed files with 159 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue