call idle() from driver-dependent close() rather than from nfc_close() as some driver still need to do an ack() before

This commit is contained in:
Philippe Teuwen
2013-01-31 01:18:23 +01:00
parent 683505f39b
commit 8bc7a1c291
8 changed files with 12 additions and 5 deletions

View File

@@ -324,6 +324,8 @@ error:
static void
acr122_pcsc_close(nfc_device *pnd)
{
pn53x_idle(pnd);
SCardDisconnect(DRIVER_DATA(pnd)->hCard, SCARD_LEAVE_CARD);
acr122_pcsc_free_scardcontext();