From 61a5268d65e0996250c105f07da6556528241d9f Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Fri, 4 Mar 2011 11:16:18 +0000 Subject: [PATCH] Do not coredump if we have an unexpected reply. If we are speaking to the wrong device, it is very likely we will have an "unexpected reply" and we should ignore it. --- libnfc/chips/pn53x.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index 43aacc8..3c29873 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -104,10 +104,6 @@ pn53x_check_ack_frame (nfc_device_t * pnd, const byte_t * pbtRxFrame, const size } pnd->iLastError = DEACKMISMATCH; ERR ("%s", "Unexpected PN53x reply!"); -#if defined(DEBUG) - // coredump so that we can have a backtrace about how this code was reached. - abort (); -#endif return false; }