drivers/arygon,pn532_uart,pn53x_usb: all PN53x commands are now cancelable
This commit is contained in:
parent
49ab6a7f31
commit
8f7834c625
7 changed files with 54 additions and 73 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue