Fix printing of 847 kbps baud rate and a minor compil warning

This commit is contained in:
Romuald Conty 2010-10-20 09:27:34 +00:00
parent dd0c4ad785
commit 311471024a

View file

@ -240,7 +240,7 @@ print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai, bool verbose)
offset++; offset++;
if (L != (nai.szAtsLen - offset)) { if (L != (nai.szAtsLen - offset)) {
printf(" * Warning: Type Identification Coding length (%i)", L); 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 if ((nai.szAtsLen - offset - 2) > 0) { // Omit 2 CRC bytes
byte_t CTC = nai.abtAts[offset]; byte_t CTC = nai.abtAts[offset];
@ -652,6 +652,9 @@ str_nfc_baud_rate (const nfc_baud_rate_t nbr)
case NBR_424: case NBR_424:
return "424 kbps"; return "424 kbps";
break; break;
case NBR_847:
return "847 kbps";
break;
} }
return ""; return "";
} }