From 5dbdabcec233f4a15c4626d16fdb54ae427b3b48 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 6 Sep 2010 11:16:24 +0000 Subject: [PATCH] Be sure that NDO_AUTO_ISO14443_4 is activated by default. --- libnfc/nfc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index 096ea18..471728a 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -236,8 +236,12 @@ bool nfc_initiator_init(nfc_device_t* pnd) // Configure the PN53X to be an Initiator or Reader/Writer if (!pn53x_set_reg(pnd,REG_CIU_CONTROL,SYMBOL_INITIATOR,0x10)) return false; + // NDO_EASY_FRAMING is activated by default nfc_configure (pnd, NDO_EASY_FRAMING, true); + // NDO_AUTO_ISO14443_4 is activated by default + nfc_configure (pnd, NDO_AUTO_ISO14443_4, true); + return true; }