CHG: revert legiccrc8 to old algo.

CHG: "hf legic decode" now loads EML memory
CHG: legic timings is better.
This commit is contained in:
iceman1001 2016-10-04 00:07:07 +02:00
commit 77a689dbeb
3 changed files with 68 additions and 68 deletions

View file

@ -115,7 +115,7 @@ uint32_t CRC8Legic(uint8_t *buff, size_t size) {
crc_t crc;
crc_init_ref(&crc, 8, 0x63, 0x55, 0, TRUE, TRUE);
for ( int i = 0; i < size; ++i)
crc_update(&crc, buff[i], 8);
crc_update2(&crc, buff[i], 8);
return reflect(crc_finish(&crc), 8);
}