From 926ea42b76b0c89c84e46f550109867df5546e7d Mon Sep 17 00:00:00 2001 From: ikarus Date: Fri, 14 Apr 2017 11:24:49 +0200 Subject: [PATCH] FIX: hf legic crc data parameter 'd' was inconsistently declared. --- client/cmdhflegic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index 4414efa1d..f66effbed 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -24,8 +24,8 @@ int usage_legic_calccrc(void){ PrintAndLog(" c <8|16> : Crc type"); PrintAndLog(""); PrintAndLog("Samples:"); - PrintAndLog(" hf legic crc b deadbeef1122"); - PrintAndLog(" hf legic crc b deadbeef1122 u 9A c 16"); + PrintAndLog(" hf legic crc d deadbeef1122"); + PrintAndLog(" hf legic crc d deadbeef1122 u 9A c 16"); return 0; } int usage_legic_rdmem(void){ @@ -678,8 +678,8 @@ int CmdLegicCalcCrc(const char *Cmd){ while(param_getchar(Cmd, cmdp) != 0x00) { switch(param_getchar(Cmd, cmdp)) { - case 'b': - case 'B': + case 'd': + case 'D': // peek at length of the input string so we can // figure out how many elements to malloc in "data" bg=en=0; @@ -1274,4 +1274,4 @@ int CmdHFLegic(const char *Cmd) { int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; -} \ No newline at end of file +}