From 86007bfdd46cc78f898e0e3e9024fda1da811903 Mon Sep 17 00:00:00 2001 From: tharexde Date: Sun, 25 Oct 2020 22:01:52 +0100 Subject: [PATCH] replaced command parameter: a -> b and w -> d --- client/src/cmdlfem4x50.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 8d7bda871..6a163eac3 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -22,7 +22,6 @@ static int usage_lf_em4x50_info(void) { PrintAndLogEx(NORMAL, "Usage: lf em 4x50_info [h] [v] [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " v - verbose output"); PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_info")); @@ -37,8 +36,8 @@ static int usage_lf_em4x50_write(void) { PrintAndLogEx(NORMAL, "Usage: lf em 4x50_write [h] [a
] [w ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " a - memory address to write to (dec)"); - PrintAndLogEx(NORMAL, " w - word to write (hex, lsb)"); + PrintAndLogEx(NORMAL, " b - memory address to write to (dec)"); + PrintAndLogEx(NORMAL, " d - word to write (hex, lsb)"); PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_write a 3 w deadc0de")); @@ -64,7 +63,7 @@ static int usage_lf_em4x50_read(void) { PrintAndLogEx(NORMAL, "Usage: lf em 4x50_read [h] [a
] [p ]"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " h - this help"); - PrintAndLogEx(NORMAL, " a - memory address to read (dec) (optional)"); + PrintAndLogEx(NORMAL, " b - memory address to read (dec) (optional)"); PrintAndLogEx(NORMAL, " p - password (hex, lsb) (optional)"); PrintAndLogEx(NORMAL, "Examples:"); PrintAndLogEx(NORMAL, _YELLOW_(" lf em 4x50_read")); @@ -362,13 +361,13 @@ int CmdEM4x50Write(const char *Cmd) { cmdp += 2; break; - case 'w': + case 'd': etd.word = param_get32ex(Cmd, cmdp + 1, 0, 16); bword = true; cmdp += 2; break; - case 'a': + case 'b': param_getdec(Cmd, cmdp + 1, &address); // validation @@ -572,7 +571,7 @@ int CmdEM4x50Read(const char *Cmd) { case 'h': return usage_lf_em4x50_read(); - case 'a': { + case 'b': { param_getdec(Cmd, cmdp + 1, &address); // lsb: byte 1 = fwr, byte 2 = lwr, byte 3 = 0x0, byte 4 = 0x0 etd.addresses = address; // lwr