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
|
|
@ -140,7 +140,7 @@ nfc_target_emulate_tag(nfc_device *pnd, nfc_target *pnt)
|
|||
uint8_t abtTx[MAX_FRAME_LEN];
|
||||
bool loop = true;
|
||||
|
||||
if (nfc_target_init (pnd, pnt, abtRx, &szRx) < 0) {
|
||||
if (nfc_target_init (pnd, pnt, abtRx, &szRx, 0) < 0) {
|
||||
nfc_perror (pnd, "nfc_target_init");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue