New str_nfc_target() function in API.

This allow to convert a nfc_target struct into allocated string.
This commit is contained in:
Romuald Conty 2012-09-17 13:47:54 +00:00
parent 82e3416619
commit 310d7eba07
13 changed files with 726 additions and 622 deletions

View file

@ -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));

View file

@ -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;