rename nfc_connect() function to nfc_open().
This commit is contained in:
parent
9eb37b3eee
commit
324af418db
36 changed files with 117 additions and 117 deletions
|
|
@ -205,9 +205,9 @@ main (int argc, const char *argv[])
|
|||
DBG ("Successfully opened the dump file\n");
|
||||
|
||||
// Try to open the NFC device
|
||||
pnd = nfc_connect (NULL);
|
||||
pnd = nfc_open (NULL);
|
||||
if (pnd == NULL) {
|
||||
ERR ("Error connecting NFC device\n");
|
||||
ERR ("Error opening NFC device\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ main (int argc, const char *argv[])
|
|||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
printf ("Connected to NFC device: %s\n", nfc_device_get_name (pnd));
|
||||
printf ("NFC device: %s opened\n", nfc_device_get_name (pnd));
|
||||
|
||||
// Try to find a MIFARE Ultralight tag
|
||||
if (nfc_initiator_select_passive_target (pnd, nmMifare, NULL, 0, &nt) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue