pn53x target_init: fix bug to use Tk; nfc-relay-picc: fix potential segfault

This commit is contained in:
Philippe Teuwen 2010-10-14 20:17:58 +00:00
parent 894d6b8d3b
commit 33a99288f3
3 changed files with 29 additions and 21 deletions

View file

@ -232,6 +232,11 @@ main (int argc, char *argv[])
pndInitiator = nfc_connect (&(pnddDevices[1]));
}
if (!pndInitiator) {
printf ("Error connecting NFC reader\n");
exit(EXIT_FAILURE);
}
printf ("Connected to the NFC reader device: %s\n", pndInitiator->acName);
// Try to find a ISO 14443-4A tag