From 979fc1b5f5f1a8a5eb904a196fd4f4665bce6761 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 1 Mar 2011 11:26:00 +0000 Subject: [PATCH] examples: fix broken internal pn53x API. --- examples/pn53x-diagnose.c | 6 +++--- examples/pn53x-sam.c | 2 +- examples/pn53x-tamashell.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/pn53x-diagnose.c b/examples/pn53x-diagnose.c index 5e40328..f5995aa 100644 --- a/examples/pn53x-diagnose.c +++ b/examples/pn53x-diagnose.c @@ -88,19 +88,19 @@ main (int argc, const char *argv[]) printf ("NFC device [%s] connected.\n", pnd->acName); - result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx, false); + result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx); if (result) { result = (memcmp (pncmd_diagnose_communication_line_test + 2, abtRx, sizeof (pncmd_diagnose_communication_line_test) - 2) == 0); } printf (" Communication line test: %s\n", result ? "OK" : "Failed"); - result = pn53x_transceive (pnd, pncmd_diagnose_rom_test, sizeof (pncmd_diagnose_rom_test), abtRx, &szRx, false); + result = pn53x_transceive (pnd, pncmd_diagnose_rom_test, sizeof (pncmd_diagnose_rom_test), abtRx, &szRx); if (result) { result = ((szRx == 1) && (abtRx[0] == 0x00)); } printf (" ROM test: %s\n", result ? "OK" : "Failed"); - result = pn53x_transceive (pnd, pncmd_diagnose_ram_test, sizeof (pncmd_diagnose_ram_test), abtRx, &szRx, false); + result = pn53x_transceive (pnd, pncmd_diagnose_ram_test, sizeof (pncmd_diagnose_ram_test), abtRx, &szRx); if (result) { result = ((szRx == 1) && (abtRx[0] == 0x00)); } diff --git a/examples/pn53x-sam.c b/examples/pn53x-sam.c index e981dd3..a9925be 100644 --- a/examples/pn53x-sam.c +++ b/examples/pn53x-sam.c @@ -93,7 +93,7 @@ sam_connection (nfc_device_t * pnd, int mode) break; } - if (!pn53x_transceive (pnd, pncmd_sam_config, szCmd, abtRx, &szRx, false)) { + if (!pn53x_transceive (pnd, pncmd_sam_config, szCmd, abtRx, &szRx)) { nfc_perror(pnd, "pn53x_transceive"); ERR ("%s %d", "Unable to execute SAMConfiguration command with mode byte:", mode); return false; diff --git a/examples/pn53x-tamashell.c b/examples/pn53x-tamashell.c index 4a0410d..b09d4da 100644 --- a/examples/pn53x-tamashell.c +++ b/examples/pn53x-tamashell.c @@ -167,7 +167,7 @@ int main(int argc, const char* argv[]) printf("Tx: "); print_hex((byte_t*)abtTx+1,szTx-1); - if (!pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx, false)) { + if (!pn53x_transceive (pnd, abtTx, szTx, abtRx, &szRx)) { free(cmd); nfc_perror (pnd, "Rx"); continue;