mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-25 05:01:52 +00:00
add timeout on nfc_target_init() and this function returns now received bytes count on success.
This commit is contained in:
@@ -155,7 +155,7 @@ main (int argc, char *argv[])
|
||||
},
|
||||
},
|
||||
};
|
||||
if (nfc_target_init (pnd, &nt, abtRecv, &szRecvBits) < 0) {
|
||||
if (nfc_target_init (pnd, &nt, abtRecv, &szRecvBits, 0) < 0) {
|
||||
nfc_perror (pnd, "nfc_target_init");
|
||||
ERR ("Could not come out of auto-emulation, no command was received");
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user