pn53x target_init: fix bug to use Tk; nfc-relay-picc: fix potential segfault
This commit is contained in:
parent
894d6b8d3b
commit
33a99288f3
3 changed files with 29 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue