Commit 8e4a2f82 authored by Francesco Mani's avatar Francesco Mani

bugfix in crc6

parent 91bfb290
...@@ -260,7 +260,7 @@ crc6 (unsigned char * inptr, int bitlen) ...@@ -260,7 +260,7 @@ crc6 (unsigned char * inptr, int bitlen)
} }
if (resbit > 0) if (resbit > 0)
crc = (crc << resbit) ^ (crc8Table[((*inptr) >> (8 - resbit)) ^ (crc >> (32 - resbit))] << 24); crc = (crc << resbit) ^ (crc6Table[((*inptr) >> (8 - resbit)) ^ (crc >> (32 - resbit))] << 24);
return crc; return crc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment