mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-24 12:41:54 +00:00
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:
@@ -110,7 +110,7 @@ main (int argc, const char *argv[])
|
||||
|
||||
// Connect with the SAM
|
||||
// FIXME: Its a private pn53x function
|
||||
if (!pn53x_SAMConfiguration (pnd, mode, 0)) {
|
||||
if (pn53x_SAMConfiguration (pnd, mode, 0) < 0) {
|
||||
nfc_perror (pnd, "pn53x_SAMConfiguration");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user