Use ARRAYLEN

This commit is contained in:
Philippe Teuwen 2019-05-14 12:51:45 +02:00
commit 1147c9faf8
5 changed files with 7 additions and 7 deletions

View file

@ -1244,7 +1244,7 @@ static int CmdHF15Restore(const char *Cmd) {
for (int j = 0; j < blocksize; j++)
snprintf(hex + j * 2, 3, "%02X", buff[j]);
for (int j = 0; j < sizeof(uid) / sizeof(uid[0]); j++)
for (int j = 0; j < ARRAYLEN(uid); j++)
snprintf(buff + j * 2, 3, "%02X", uid[j]);
//TODO: Addressed mode currently not work