Commit b84ac324 authored by Romuald Conty's avatar Romuald Conty

pn532_uart: fix 'operation abort' feature with this driver

parent 0841a94c
......@@ -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);
if (pnd->last_error < 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment