mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
added tiwrite command, split LF code from appmain into lfops.c
This commit is contained in:
parent
431ae7e0eb
commit
9bea179a71
8 changed files with 1136 additions and 961 deletions
|
@ -1,4 +1,4 @@
|
|||
unsigned short update_crc16( WORD crc, BYTE c ) {
|
||||
WORD update_crc16( WORD crc, BYTE c ) {
|
||||
WORD i, v, tcrc = 0;
|
||||
|
||||
v = (crc ^ c) & 0xff;
|
||||
|
@ -7,5 +7,5 @@ unsigned short update_crc16( WORD crc, BYTE c ) {
|
|||
v >>= 1;
|
||||
}
|
||||
|
||||
return (crc >> 8) ^ tcrc;
|
||||
return ((crc >> 8) ^ tcrc)&0xffff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue