From 311471024aaef09c375e3e04be2600aa1cb8f390 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 20 Oct 2010 09:27:34 +0000 Subject: [PATCH] Fix printing of 847 kbps baud rate and a minor compil warning --- examples/nfc-utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/nfc-utils.c b/examples/nfc-utils.c index 178cd9a..0a5b9b0 100644 --- a/examples/nfc-utils.c +++ b/examples/nfc-utils.c @@ -240,7 +240,7 @@ print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai, bool verbose) offset++; if (L != (nai.szAtsLen - offset)) { printf(" * Warning: Type Identification Coding length (%i)", L); - printf(" not matching Tk length (%i)\n", (nai.szAtsLen - offset)); + printf(" not matching Tk length (%zi)\n", (nai.szAtsLen - offset)); } if ((nai.szAtsLen - offset - 2) > 0) { // Omit 2 CRC bytes byte_t CTC = nai.abtAts[offset]; @@ -652,6 +652,9 @@ str_nfc_baud_rate (const nfc_baud_rate_t nbr) case NBR_424: return "424 kbps"; break; + case NBR_847: + return "847 kbps"; + break; } return ""; }