less hardcoded sizes and more ARRAYLEN

This commit is contained in:
Philippe Teuwen committed 2019-07-31 23:45:17 +02:00
1 parent 74288ad128
commit f276dca3f1
16 files changed
+43 -53

No files matched your search

+2 -2
View File
@@ -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;