mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 04:06:38 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user