mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
upd: RevEng v1.5.3
This commit is contained in:
parent
1dd01fd738
commit
513d0aca44
12 changed files with 431 additions and 420 deletions
|
@ -456,15 +456,16 @@ static int l_sha1(lua_State *L) {
|
|||
|
||||
static int l_reveng_models(lua_State *L){
|
||||
|
||||
// This array needs to be adjusted if RevEng adds more crc-models.
|
||||
#define NMODELS 103
|
||||
|
||||
int count = 0;
|
||||
uint8_t in_width = luaL_checkunsigned(L, 1);
|
||||
if ( in_width > 89 ) return returnToLuaWithError(L,"Width cannot exceed 89, got %d", in_width);
|
||||
|
||||
// This array needs to be adjusted if RevEng adds more crc-models.
|
||||
uint8_t width[102];
|
||||
uint8_t width[NMODELS];
|
||||
memset(width, 0, sizeof(width));
|
||||
// This array needs to be adjusted if RevEng adds more crc-models.
|
||||
char *models[102];
|
||||
char *models[NMODELS];
|
||||
|
||||
width[0] = in_width;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue