the following functions now return libnfc error code:

_pn53x_write_register()
_pn53x_WriteRegister()
_pn53x_transceive()
_pn53x_SAMConfiguration()
_pn53x_PowerDown()
 _pn53x_InListPassiveTarget()
_pn53x_InDeselect()
_pn53x_InRelease()
_pn53x_RFConfiguration__*
This commit is contained in:
Audrey Diacre 2011-12-20 11:25:33 +00:00
parent 103485518c
commit 9c5ec3c4e1
8 changed files with 121 additions and 133 deletions

View file

@ -178,7 +178,7 @@ int main(int argc, const char* argv[])
print_hex((uint8_t*)abtTx,szTx);
szRx = sizeof(abtRx);
if (!pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx, 0)) {
if (pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx, 0) < 0) {
free(cmd);
nfc_perror (pnd, "Rx");
continue;