From 0c9855017725a3a5cd1ae4924e7253b1298a311f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 30 Jul 2023 17:17:08 +0200 Subject: [PATCH] dont mark crc byte everywhere in the alias list. have to set it for those commands that would benefit from it --- client/src/cmdhf14a.c | 2 +- client/src/cmdhfmf.c | 2 +- client/src/cmdhfmfu.c | 2 +- client/src/cmdtrace.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/cmdhf14a.c b/client/src/cmdhf14a.c index c7529c56a..ecd57e181 100644 --- a/client/src/cmdhf14a.c +++ b/client/src/cmdhf14a.c @@ -232,7 +232,7 @@ static uint8_t gs_frames_num = 0; static uint16_t atsFSC[] = {16, 24, 32, 40, 48, 64, 96, 128, 256}; static int CmdHF14AList(const char *Cmd) { - return CmdTraceListAlias(Cmd, "hf 14a", "14a"); + return CmdTraceListAlias(Cmd, "hf 14a", "14a -c"); } int hf14a_getconfig(hf14a_config *config) { diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 0eac61eca..be336bcb3 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -6736,7 +6736,7 @@ static int CmdHFMFPersonalize(const char *Cmd) { } static int CmdHF14AMfList(const char *Cmd) { - return CmdTraceListAlias(Cmd, "hf mf", "mf"); + return CmdTraceListAlias(Cmd, "hf mf", "mf -c"); } static int CmdHf14AGen3UID(const char *Cmd) { diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 7f1722cd4..13b8c9cb4 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -4673,7 +4673,7 @@ static int CmdHF14AMfuView(const char *Cmd) { } static int CmdHF14AMfuList(const char *Cmd) { - return CmdTraceListAlias(Cmd, "hf 14a", "14a"); + return CmdTraceListAlias(Cmd, "hf 14a", "14a -c"); } diff --git a/client/src/cmdtrace.c b/client/src/cmdtrace.c index 7efb8bc35..e71ca4445 100644 --- a/client/src/cmdtrace.c +++ b/client/src/cmdtrace.c @@ -1176,7 +1176,7 @@ int CmdTraceListAlias(const char *Cmd, const char *alias, const char *protocol) CLIParserFree(ctx); char args[128] = {0}; - snprintf(args, sizeof(args), "-c -t %s ", protocol); + snprintf(args, sizeof(args), "-t %s ", protocol); strncat(args, Cmd, sizeof(args) - strlen(args) - 1); return CmdTraceList(args); }