From b011c76dd039084088013ba1d25d91e7e1eb5a4c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 7 Apr 2026 08:35:30 +0700 Subject: [PATCH] style --- client/src/cmdlfhitag.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/cmdlfhitag.c b/client/src/cmdlfhitag.c index ee06b85e9..6220a1fed 100644 --- a/client/src/cmdlfhitag.c +++ b/client/src/cmdlfhitag.c @@ -1674,13 +1674,13 @@ static int CmdLFHitagEload(const char *Cmd) { // read dump file uint8_t *dump = NULL; size_t bytes_read = (4 * 64); - int res = pm3_load_dump(filename, (void **)&dump, &bytes_read, (4 * 64)); + int res = pm3_load_dump(filename, (void **)&dump, &bytes_read, (HITAG_BLOCK_SIZE * 64)); if (res != PM3_SUCCESS) { return res; } // check dump len.. - if (bytes_read == HITAG2_MAX_BYTE_SIZE || bytes_read == 4 * 64) { + if (bytes_read == HITAG2_MAX_BYTE_SIZE || bytes_read == (HITAG_BLOCK_SIZE * 64)) { lf_hitag_t *payload = calloc(1, sizeof(lf_hitag_t) + bytes_read); if (payload == NULL) { @@ -1691,10 +1691,13 @@ static int CmdLFHitagEload(const char *Cmd) { if (use_ht1) payload->type = 1; + if (use_ht2) payload->type = 2; + if (use_hts) payload->type = 3; + if (use_htm) payload->type = 4;