add timeout on nfc_target_init() and this function returns now received bytes count on success.
This commit is contained in:
parent
c80ebdca25
commit
239fd750c4
14 changed files with 22 additions and 21 deletions
|
|
@ -176,7 +176,7 @@ main (int argc, const char *argv[])
|
|||
};
|
||||
printf ("Now both, NFC device (configured as target) and SAM are readables from an external NFC initiator.\n");
|
||||
printf ("Please note that NFC device (configured as target) stay in target mode until it receive RATS, ATR_REQ or proprietary command.\n");
|
||||
if (nfc_target_init (pnd, &nt, abtRx, &szRx) < 0) {
|
||||
if (nfc_target_init (pnd, &nt, abtRx, &szRx, 0) < 0) {
|
||||
nfc_perror(pnd, "nfc_target_init");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue