mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-01 21:26:43 +00:00
drivers/arygon,pn532_uart,pn53x_usb: all PN53x commands are now cancelable
This commit is contained in:
@@ -109,7 +109,8 @@ main (int argc, const char *argv[])
|
||||
pn532_sam_mode mode = iMode;
|
||||
|
||||
// Connect with the SAM
|
||||
if (!pn53x_SAMConfiguration (pnd, mode)) {
|
||||
// FIXME: Its a private pn53x function
|
||||
if (!pn53x_SAMConfiguration (pnd, mode, NULL)) {
|
||||
nfc_perror (pnd, "pn53x_SAMConfiguration");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -184,7 +185,7 @@ main (int argc, const char *argv[])
|
||||
}
|
||||
|
||||
// Disconnect from the SAM
|
||||
pn53x_SAMConfiguration (pnd, PSM_NORMAL);
|
||||
pn53x_SAMConfiguration (pnd, PSM_NORMAL, NULL);
|
||||
|
||||
// Disconnect from NFC device
|
||||
nfc_disconnect (pnd);
|
||||
|
||||
Reference in New Issue
Block a user