TypeB ProtocolInfo: limit mask for ISO14443-4 support flag
This commit is contained in:
parent
f1b4c8e7c2
commit
b52308d071
1 changed files with 3 additions and 1 deletions
|
@ -544,7 +544,9 @@ snprint_nfc_iso14443b_info(char *dst, size_t size, const nfc_iso14443b_info *pnb
|
|||
const int iMaxFrameSizes[] = { 16, 24, 32, 40, 48, 64, 96, 128, 256 };
|
||||
off += snprintf(dst + off, size - off, "* Maximum frame sizes: %d bytes\n", iMaxFrameSizes[((pnbi->abtProtocolInfo[1] & 0xf0) >> 4)]);
|
||||
}
|
||||
if ((pnbi->abtProtocolInfo[1] & 0x0f) == PI_ISO14443_4_SUPPORTED) {
|
||||
if ((pnbi->abtProtocolInfo[1] & 0x01) == PI_ISO14443_4_SUPPORTED) {
|
||||
// in principle low nibble could only be 0000 or 0001 and other values are RFU
|
||||
// but in practice we found 0011 so let's use only last bit for -4 compatibility
|
||||
off += snprintf(dst + off, size - off, "* Protocol types supported: ISO/IEC 14443-4\n");
|
||||
}
|
||||
off += snprintf(dst + off, size - off, "* Frame Waiting Time: %.4g ms\n", 256.0 * 16.0 * (1 << ((pnbi->abtProtocolInfo[2] & 0xf0) >> 4)) / 13560.0);
|
||||
|
|
Loading…
Reference in a new issue