From 34bf7b3089dd0e1e18af03483e61672f36c787cf Mon Sep 17 00:00:00 2001 From: Peter Meerwald Date: Sat, 6 Jul 2013 22:35:34 +0200 Subject: [PATCH] nfs-list: drop outdated examples superseeded by connection string Signed-off-by: Peter Meerwald --- utils/nfc-list.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/utils/nfc-list.c b/utils/nfc-list.c index 353b0ee..c5dd189 100644 --- a/utils/nfc-list.c +++ b/utils/nfc-list.c @@ -98,22 +98,12 @@ main(int argc, const char *argv[]) pnd = nfc_open(context, NULL); #endif - /* If specific device is wanted, i.e. an ARYGON device on /dev/ttyUSB0 */ + /* Use connection string if specific device is wanted, + * i.e. PN532 UART device on /dev/ttyUSB1 */ #if 0 - nfc_device_desc_t ndd; - ndd.pcDriver = "ARYGON"; - ndd.pcPort = "/dev/ttyUSB0"; - ndd.uiSpeed = 115200; - pnd = nfc_open(context, &ndd); + pnd = nfc_open(context, "pn532_uart:/dev/ttyUSB1"); #endif - /* If specific device is wanted, i.e. a SCL3711 on USB */ -#if 0 - nfc_device_desc_t ndd; - ndd.pcDriver = "PN533_USB"; - strcpy(ndd.acDevice, "SCM Micro / SCL3711-NFC&RW"); - pnd = nfc_open(context, &ndd); -#endif nfc_connstring connstrings[MAX_DEVICE_COUNT]; size_t szDeviceFound = nfc_list_devices(context, connstrings, MAX_DEVICE_COUNT);