From 17eff8863c8ada785ae9ee213e39cafb1f22b95d Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 20 Nov 2009 16:09:04 +0000 Subject: [PATCH] nfc-relay: Initialize initiator device explicitly. --- src/examples/nfc-relay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/examples/nfc-relay.c b/src/examples/nfc-relay.c index e395bc6..d497c1e 100644 --- a/src/examples/nfc-relay.c +++ b/src/examples/nfc-relay.c @@ -112,6 +112,7 @@ int main(int argc,char* argv[]) pdiReader = INVALID_DEVICE_INFO; while (pdiReader == INVALID_DEVICE_INFO) pdiReader = nfc_connect(NULL); printf("[+] Configuring NFC reader settings\n"); + nfc_initiator_init(pdiReader); nfc_configure(pdiReader,DCO_HANDLE_CRC,false); nfc_configure(pdiReader,DCO_HANDLE_PARITY,false); nfc_configure(pdiReader,DCO_ACCEPT_INVALID_FRAMES,true);