give credit where credit is due

thanks iceman for the crc :)
This commit is contained in:
marshmellow42 2015-03-13 14:00:11 -04:00
commit e74fc2ecba
2 changed files with 3 additions and 1 deletions

View file

@ -1485,6 +1485,7 @@ int CmdFSKdemodPyramid(const char *Cmd)
csBuff[i] = bytebits_to_byte(BitStream + idx + 16 + (i*8), 8);
}
//check checksum calc
//checksum calc thanks to ICEMAN!!
uint32_t checkCS = CRC8Maxim(csBuff,13);
//get raw ID before removing parities

View file

@ -42,7 +42,8 @@ uint32_t crc_finish(crc_t *crc)
return ( crc->state ^ crc->final_xor ) & crc->mask;
}
uint32_t CRC8Maxim(uint8_t *buff, size_t size )
//credits to iceman
uint32_t CRC8Maxim(uint8_t *buff, size_t size)
{
crc_t crc;
crc_init(&crc, 9, 0x8c, 0x00, 0x00);