mirror of
https://github.com/nfc-tools/libnfc.git
synced 2025-12-23 18:50:05 +00:00
pn532_uart: fix 'operation abort' feature with this driver
This commit is contained in:
parent
0841a94c65
commit
b84ac324ff
@ -366,7 +366,8 @@ pn532_uart_receive(nfc_device *pnd, uint8_t *pbtData, const size_t szDataLen, in
|
||||
pnd->last_error = uart_receive(DRIVER_DATA(pnd)->port, abtRxBuf, 5, abort_p, timeout);
|
||||
|
||||
if (abort_p && (NFC_EOPABORTED == pnd->last_error)) {
|
||||
return pn532_uart_ack(pnd);
|
||||
pn532_uart_ack(pnd);
|
||||
return NFC_EOPABORTED;
|
||||
}
|
||||
|
||||
if (pnd->last_error < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user