From 7ca0aa07c55d0fcbc96be8b050f965423910beb7 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 8 Mar 2011 15:09:23 +0000 Subject: [PATCH] Initialise pn53x chip in acr122_connect(). --- libnfc/drivers/acr122.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnfc/drivers/acr122.c b/libnfc/drivers/acr122.c index aa99e4b..1f7bc33 100644 --- a/libnfc/drivers/acr122.c +++ b/libnfc/drivers/acr122.c @@ -42,7 +42,6 @@ # define ACR122_DRIVER_NAME "ACR122" -// XXX: Some review from users cross-compiling is welcome! #if defined (_WIN32) # define IOCTL_CCID_ESCAPE_SCARD_CTL_CODE SCARD_CTL_CODE(3500) #elif defined(__APPLE__) @@ -228,6 +227,8 @@ acr122_connect (const nfc_device_desc_t * pndd) CHIP_DATA (pnd)->io = &acr122_io; pnd->driver = &acr122_driver; + pn53x_init (pnd); + return pnd; }