From b84ac324ff545458469fc32f9a894dca312a1e25 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 18 Apr 2013 13:48:33 +0200 Subject: [PATCH] pn532_uart: fix 'operation abort' feature with this driver --- libnfc/drivers/pn532_uart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 3481001..1f3294d 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -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) {