mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 18:13:46 +00:00
add timeout on nfc_target_init() and this function returns now received bytes count on success.
This commit is contained in:
@@ -119,7 +119,7 @@ main (int argc, const char *argv[])
|
||||
print_nfc_target (nt, false);
|
||||
|
||||
printf ("Waiting for initiator request...\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");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user