From da1de80aa6170f868fb67aa3146965001ca34734 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 4 Oct 2010 13:28:36 +0000 Subject: [PATCH] nfc-emulate-ndef: use nfc_target_receive_bytes() instead of pn53x_target_receive_bytes(), adjust NTM_PICC new name --- examples/nfc-emulate-ndef.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nfc-emulate-ndef.c b/examples/nfc-emulate-ndef.c index 0dd6501..ed2c1b3 100644 --- a/examples/nfc-emulate-ndef.c +++ b/examples/nfc-emulate-ndef.c @@ -64,8 +64,8 @@ transmit_bytes (const byte_t * pbtTx, const size_t szTxLen) } pn53x_set_parameters(pnd,SYMBOL_PARAM_fISO14443_4_PICC); - if (!pn53x_target_receive_bytes(pnd,abtRx,&szRxLen)) { - nfc_perror (pnd, "pn53x_target_receive_bytes"); + if (!nfc_target_receive_bytes(pnd,abtRx,&szRxLen)) { + nfc_perror (pnd, "nfc_target_receive_bytes"); return false; } @@ -101,7 +101,7 @@ main (int argc, char *argv[]) .nti.nai.szAtsLen = 0, }; - if (!nfc_target_init (pnd, NTM_PICC, nt, abtRx, &szRxLen)) { + if (!nfc_target_init (pnd, NTM_ISO14443_4_PICC, nt, abtRx, &szRxLen)) { nfc_perror (pnd, "nfc_target_init"); ERR("Could not come out of auto-emulation, no command was received"); return EXIT_FAILURE;