From ee718d6f9b22268527a33d6f963aec75fbe1261d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 27 Apr 2011 14:37:24 +0000 Subject: [PATCH] drivers/pn53x_usb: do not send ACK when its not needed, enable abort() mecanism on InJumpForDEP command --- libnfc/drivers/pn53x_usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index 6300d96..448449b 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -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");