mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
more crc
This commit is contained in:
parent
8003d95be9
commit
1273971991
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ static int l_crc16(lua_State *L) {
|
||||||
size_t size;
|
size_t size;
|
||||||
const char *p_str = luaL_checklstring(L, 1, &size);
|
const char *p_str = luaL_checklstring(L, 1, &size);
|
||||||
|
|
||||||
uint16_t checksum = crc(CRC_CCITT, (uint8_t *) p_str, size);
|
uint16_t checksum = Crc(CRC_CCITT, (uint8_t *) p_str, size);
|
||||||
lua_pushunsigned(L, checksum);
|
lua_pushunsigned(L, checksum);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue