mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
less hardcoded sizes and more ARRAYLEN
This commit is contained in:
parent
74288ad128
commit
f276dca3f1
16 changed files with 43 additions and 53 deletions
|
@ -80,8 +80,8 @@ static int CmdTIDemod(const char *Cmd) {
|
|||
|
||||
save_restoreGB(GRAPH_SAVE);
|
||||
|
||||
int lowLen = sizeof(LowTone) / sizeof(int);
|
||||
int highLen = sizeof(HighTone) / sizeof(int);
|
||||
int lowLen = ARRAYLEN(LowTone);
|
||||
int highLen = ARRAYLEN(HighTone);
|
||||
int convLen = (highLen > lowLen) ? highLen : lowLen;
|
||||
uint16_t crc;
|
||||
int i, j, TagType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue