add timeout on nfc_target_init() and this function returns now received bytes count on success.

This commit is contained in:
Audrey Diacre 2012-01-05 15:10:11 +00:00
parent c80ebdca25
commit 239fd750c4
14 changed files with 22 additions and 21 deletions

View file

@ -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;