From 2024e5f904c03234db70bd781fcd781505130ef4 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 5 Oct 2010 07:53:19 +0000 Subject: [PATCH] nfc-list: add example how to address directly a USB device by its name --- examples/nfc-list.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/nfc-list.c b/examples/nfc-list.c index ea76fc3..3c696be 100644 --- a/examples/nfc-list.c +++ b/examples/nfc-list.c @@ -83,7 +83,14 @@ main (int argc, const char *argv[]) ndd.pcDriver = "ARYGON"; ndd.pcPort = "/dev/ttyUSB0"; ndd.uiSpeed = 115200; + pnd = nfc_connect (&ndd); +#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_connect (&ndd); #endif