From e44af986a0a21798ddccef71038b78dc3966badd Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sun, 13 Mar 2011 20:42:27 +0000 Subject: [PATCH] Unbreak aborting from the pn53X_usb driver. --- libnfc/drivers/pn53x_usb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index b605102..c9dc74e 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -411,7 +411,9 @@ read: goto read; break; case 1: - return (pn53x_usb_ack (pnd) >= 0) ? true : false; + pn53x_usb_ack (pnd); + pnd->iLastError = DEABORT; + return -1; break; } }