drivers: InDataExchange is an abortable command too.

This commit is contained in:
Romuald Conty 2011-05-05 11:49:43 +00:00
parent 008f2a8d4c
commit 64b036b129
3 changed files with 7 additions and 5 deletions

View file

@ -284,9 +284,10 @@ arygon_tama_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLe
switch (CHIP_DATA (pnd)->ui8LastCommand) { switch (CHIP_DATA (pnd)->ui8LastCommand) {
case InAutoPoll: case InAutoPoll:
case TgInitAsTarget: case InDataExchange:
case TgGetData:
case InJumpForDEP: case InJumpForDEP:
case TgGetData:
case TgInitAsTarget:
abort_fd = DRIVER_DATA (pnd)->iAbortFds[1]; abort_fd = DRIVER_DATA (pnd)->iAbortFds[1];
break; break;
default: default:

View file

@ -271,9 +271,10 @@ pn532_uart_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen
switch (CHIP_DATA (pnd)->ui8LastCommand) { switch (CHIP_DATA (pnd)->ui8LastCommand) {
case InAutoPoll: case InAutoPoll:
case InDataExchange:
case InJumpForDEP: case InJumpForDEP:
case TgInitAsTarget:
case TgGetData: case TgGetData:
case TgInitAsTarget:
abort_fd = DRIVER_DATA (pnd)->iAbortFds[1]; abort_fd = DRIVER_DATA (pnd)->iAbortFds[1];
break; break;
default: default:

View file

@ -411,10 +411,10 @@ pn53x_usb_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen)
bool delayed_reply = false; bool delayed_reply = false;
switch (CHIP_DATA (pnd)->ui8LastCommand) { switch (CHIP_DATA (pnd)->ui8LastCommand) {
case InDataExchange:
case InJumpForDEP: case InJumpForDEP:
case TgInitAsTarget:
case TgGetData: case TgGetData:
DBG ("Delayed reply detected"); case TgInitAsTarget:
delayed_reply = true; delayed_reply = true;
break; break;
default: default: