mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
drivers/pn53x_usb: do not send ACK when its not needed, enable abort() mecanism on InJumpForDEP command
This commit is contained in:
@@ -404,8 +404,8 @@ pn53x_usb_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen)
|
||||
int abort_fd = 0;
|
||||
|
||||
switch (CHIP_DATA (pnd)->ui8LastCommand) {
|
||||
case InAutoPoll:
|
||||
case TgInitAsTarget:
|
||||
case InJumpForDEP:
|
||||
case TgGetData:
|
||||
abort_fd = pnd->iAbortFds[1];
|
||||
break;
|
||||
@@ -453,8 +453,6 @@ read:
|
||||
return false;
|
||||
}
|
||||
|
||||
pn53x_usb_ack (pnd);
|
||||
|
||||
const byte_t pn53x_preamble[3] = { 0x00, 0x00, 0xff };
|
||||
if (0 != (memcmp (abtRxBuf, pn53x_preamble, 3))) {
|
||||
ERR ("%s", "Frame preamble+start code mismatch");
|
||||
|
||||
Reference in New Issue
Block a user