drivers: InDataExchange is an abortable command too.
This commit is contained in:
parent
008f2a8d4c
commit
64b036b129
3 changed files with 7 additions and 5 deletions
|
@ -284,9 +284,10 @@ arygon_tama_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLe
|
|||
|
||||
switch (CHIP_DATA (pnd)->ui8LastCommand) {
|
||||
case InAutoPoll:
|
||||
case TgInitAsTarget:
|
||||
case TgGetData:
|
||||
case InDataExchange:
|
||||
case InJumpForDEP:
|
||||
case TgGetData:
|
||||
case TgInitAsTarget:
|
||||
abort_fd = DRIVER_DATA (pnd)->iAbortFds[1];
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -271,9 +271,10 @@ pn532_uart_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen
|
|||
|
||||
switch (CHIP_DATA (pnd)->ui8LastCommand) {
|
||||
case InAutoPoll:
|
||||
case InDataExchange:
|
||||
case InJumpForDEP:
|
||||
case TgInitAsTarget:
|
||||
case TgGetData:
|
||||
case TgInitAsTarget:
|
||||
abort_fd = DRIVER_DATA (pnd)->iAbortFds[1];
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -411,10 +411,10 @@ pn53x_usb_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen)
|
|||
bool delayed_reply = false;
|
||||
|
||||
switch (CHIP_DATA (pnd)->ui8LastCommand) {
|
||||
case InDataExchange:
|
||||
case InJumpForDEP:
|
||||
case TgInitAsTarget:
|
||||
case TgGetData:
|
||||
DBG ("Delayed reply detected");
|
||||
case TgInitAsTarget:
|
||||
delayed_reply = true;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue