From be5251b669e1812fe13668bafe2832d3a574210e Mon Sep 17 00:00:00 2001 From: henryk Date: Sun, 9 Dec 2007 06:03:03 +0000 Subject: Change parity storage in frame struct git-svn-id: https://svn.openpcd.org:2342/trunk@379 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_layer3a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpicc/application/iso14443_layer3a.h') diff --git a/openpicc/application/iso14443_layer3a.h b/openpicc/application/iso14443_layer3a.h index 2b39d4e..0c2a909 100644 --- a/openpicc/application/iso14443_layer3a.h +++ b/openpicc/application/iso14443_layer3a.h @@ -96,7 +96,7 @@ typedef struct { u_int32_t numbytes; u_int8_t numbits, bit_offset; u_int8_t data[MAXIMUM_FRAME_SIZE]; - u_int8_t parity[MAXIMUM_FRAME_SIZE]; /* Only the LSB of each byte is used */ + u_int8_t parity[MAXIMUM_FRAME_SIZE/8+1]; /* parity bit for data[x] is in parity[x/8] & (1<<(x%8)) */ } iso14443_frame; extern const iso14443_frame ATQA_FRAME; -- cgit v1.2.3