Partial MFC support while checking target presence on PN532/PN531
Goal is to implement "ping" on MFC the same as PN533 does. This patch implements MFC re-selection, but do not take care about authentication; this means this will have side effect while you are authenticated on a MFC block.
This commit is contained in:
parent
1a3acdadc4
commit
7b5ab23452
2 changed files with 11 additions and 1 deletions
|
|
@ -148,6 +148,12 @@ main(int argc, const char *argv[])
|
|||
} else {
|
||||
printf("No target found.\n");
|
||||
}
|
||||
|
||||
printf("Waiting for card removing...");
|
||||
while (0 == (res = nfc_initiator_target_is_present(pnd, NULL))) {}
|
||||
nfc_perror(pnd, "nfc_initiator_target_is_present");
|
||||
printf("done.\n");
|
||||
|
||||
nfc_close(pnd);
|
||||
nfc_exit(context);
|
||||
exit(EXIT_SUCCESS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue