acr122.c: apply changes done in r1296.

This commit is contained in:
Audrey Diacre 2012-01-18 14:44:57 +00:00
parent 3aa31abe18
commit 86c8ce536b

View file

@ -252,7 +252,7 @@ acr122_open (const nfc_connstring connstring)
// FIXME: acr122_open() does not take care about bus index // FIXME: acr122_open() does not take care about bus index
char *pcFirmware; char *pcFirmware;
nfc_device *pnd = nfc_device_new (); nfc_device *pnd = nfc_device_new (connstring);
pnd->driver_data = malloc (sizeof (struct acr122_data)); pnd->driver_data = malloc (sizeof (struct acr122_data));
// Alloc and init chip's data // Alloc and init chip's data
@ -281,7 +281,7 @@ acr122_open (const nfc_connstring connstring)
if (strstr (pcFirmware, FIRMWARE_TEXT) != NULL) { if (strstr (pcFirmware, FIRMWARE_TEXT) != NULL) {
// Done, we found the reader we are looking for // Done, we found the reader we are looking for
snprintf (pnd->acName, sizeof (pnd->acName), "%s / %s", ndd.pcsc_device_name, pcFirmware); snprintf (pnd->name, sizeof (pnd->name), "%s / %s", ndd.pcsc_device_name, pcFirmware);
// 50: empirical tuning on Touchatag // 50: empirical tuning on Touchatag
// 46: empirical tuning on ACR122U // 46: empirical tuning on ACR122U