From 172beccf6c3efe172aba9c91e533339b04cebae7 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 4 Mar 2011 11:26:15 +0000 Subject: [PATCH] drivers/arygon: do not hard code PN532 chip type: pn53x_init() determine it and ARYGON device seems to not need to be waken up. --- libnfc/drivers/arygon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/drivers/arygon.c b/libnfc/drivers/arygon.c index d125ef4..e7df3ea 100644 --- a/libnfc/drivers/arygon.c +++ b/libnfc/drivers/arygon.c @@ -168,13 +168,13 @@ arygon_connect (const nfc_device_desc_t * pndd) // We have a connection pnd = malloc (sizeof (nfc_device_t)); strncpy (pnd->acName, pndd->acDevice, DEVICE_NAME_LENGTH - 1); - pnd->acName[DEVICE_NAME_LENGTH - 1] = '\0'; pnd->driver_data = malloc(sizeof(struct arygon_data)); ((struct arygon_data*)(pnd->driver_data))->port = sp; pnd->chip_data = malloc(sizeof(struct pn53x_data)); - ((struct pn53x_data*)(pnd->chip_data))->type = PN532; - ((struct pn53x_data*)(pnd->chip_data))->state = SLEEP; + + // The PN53x chip connected to ARYGON MCU doesn't seems to be in SLEEP mode + ((struct pn53x_data*)(pnd->chip_data))->state = NORMAL; pnd->driver = &arygon_driver; // Check communication using "Reset TAMA" command