X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/5cef6d7aff4feea862f119823e6b33d72cb69a34..467e092776691683b297e1328281cded11717298:/latester/latester.c diff --git a/latester/latester.c b/latester/latester.c index a2f4f18..0906760 100644 --- a/latester/latester.c +++ b/latester/latester.c @@ -202,7 +202,7 @@ uint32_t calc_bitmap_crc(uint32_t *bitmap, unsigned start, unsigned end) crc_t crc = 0; crc = crc_update(crc, bitmap[0] << start, 32 - start); crc = crc_update(crc, bitmap[1], 32); - crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64); + crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64); /* FIXME: This seems to be broken for end < 64 */ crc = crc_update(crc, bitmap[3], end > 96 ? end - 96 : 0); return (uint32_t)htons(crc << 17); }