mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
CHG: extracted a #define for the crc16 poly
This commit is contained in:
parent
ee4e281675
commit
6b6815bccb
2 changed files with 7 additions and 7 deletions
|
@ -135,8 +135,7 @@ uint32_t bytebits_to_byte(uint8_t *src, size_t numbits)
|
|||
uint32_t bytebits_to_byteLSBF(uint8_t *src, size_t numbits)
|
||||
{
|
||||
uint32_t num = 0;
|
||||
for(int i = 0 ; i < numbits ; i++)
|
||||
{
|
||||
for(int i = 0 ; i < numbits ; i++) {
|
||||
num = (num << 1) | *(src + (numbits-(i+1)));
|
||||
}
|
||||
return num;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue