nfc_target_init() function returns now 0 on succes and libnfc error code on failure.
This commit is contained in:
parent
145cc4b2ad
commit
ba2a7cfe2e
14 changed files with 36 additions and 36 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)) {
|
||||
if (nfc_target_init (pnd, pnt, abtRx, &szRx) < 0) {
|
||||
nfc_perror (pnd, "nfc_target_init");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue