mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
New str_nfc_target() function in API.
This allow to convert a nfc_target struct into allocated string.
This commit is contained in:
@@ -259,7 +259,7 @@ main(int argc, char *argv[])
|
||||
*/
|
||||
|
||||
printf("%s will emulate this ISO14443-A tag:\n", argv[0]);
|
||||
print_nfc_iso14443a_info(nt.nti.nai, true);
|
||||
print_nfc_target(nt, true);
|
||||
|
||||
// Switch off NP_EASY_FRAMING if target is not ISO14443-4
|
||||
nfc_device_set_property_bool(pnd, NP_EASY_FRAMING, (nt.nti.nai.btSak & SAK_ISO14443_4_COMPLIANT));
|
||||
|
||||
@@ -159,7 +159,7 @@ main(int argc, const char *argv[])
|
||||
goto error;
|
||||
} else if (res == 1) {
|
||||
printf("The following ISO14443A tag (SAM) was found:\n");
|
||||
print_nfc_iso14443a_info(nt.nti.nai, true);
|
||||
print_nfc_target(nt, true);
|
||||
} else {
|
||||
ERR("%s", "More than one ISO14442 tag found as SAM.");
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user