mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-02 21:54:10 +08:00
fix: crc16 ccitt in utils.lua has been adapted for the new crc16.
This commit is contained in:
parent
0492df266c
commit
ec54fa5b30
1 changed files with 2 additions and 3 deletions
|
@ -390,9 +390,8 @@ static int l_crc16(lua_State *L) {
|
|||
size_t size;
|
||||
const char *p_str = luaL_checklstring(L, 1, &size);
|
||||
|
||||
//iceman tochange
|
||||
uint16_t retval = crc16_ccitt( (uint8_t*) p_str, size);
|
||||
lua_pushunsigned(L, retval);
|
||||
uint16_t checksum = crc(CRC_CCITT, (uint8_t*) p_str, size);
|
||||
lua_pushunsigned(L, checksum);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue