mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
drivers: InDataExchange is an abortable command too.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user