renamed std_read -> stdread
This commit is contained in:
@@ -663,7 +663,7 @@ static command_t CommandTable[] = {
|
||||
{"4x50_watch", CmdEM4x50Watch, IfPm3EM4x50, "read EM4x50 continously"},
|
||||
{"4x50_restore",CmdEM4x50Restore, IfPm3EM4x50, "restore EM4x50 dump to tag"},
|
||||
{"4x50_sim", CmdEM4x50Sim, IfPm3EM4x50, "simulate single EM4x50 word (uid)"},
|
||||
{"4x50_std_read",CmdEM4x50StdRead, IfPm3EM4x50, "show standard read mode data of EM4x50 tag"},
|
||||
{"4x50_stdread",CmdEM4x50StdRead, IfPm3EM4x50, "show standard read mode data of EM4x50 tag"},
|
||||
{"4x50_eload", CmdEM4x50ELoad, IfPm3EM4x50, "load a binary dump into emulator memory"},
|
||||
{"4x50_esave", CmdEM4x50ESave, IfPm3EM4x50, "save emulator memory to file"},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
|
||||
@@ -175,7 +175,7 @@ static int usage_lf_em4x50_sim(void) {
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
static int usage_lf_em4x50_std_read(void) {
|
||||
static int usage_lf_em4x50_stdread(void) {
|
||||
PrintAndLogEx(NORMAL, "Show standard read mode data of EM4x50 tag. Tag must be on antenna.");
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
PrintAndLogEx(NORMAL, "Usage: lf em 4x50_std_read [h]");
|
||||
@@ -1168,7 +1168,7 @@ int CmdEM4x50StdRead(const char *Cmd) {
|
||||
switch (tolower(param_getchar(Cmd, cmdp))) {
|
||||
|
||||
case 'h':
|
||||
return usage_lf_em4x50_std_read();
|
||||
return usage_lf_em4x50_stdread();
|
||||
|
||||
default:
|
||||
PrintAndLogEx(WARNING, "Unknown parameter '%c'", param_getchar(Cmd, cmdp));
|
||||
@@ -1178,12 +1178,12 @@ int CmdEM4x50StdRead(const char *Cmd) {
|
||||
}
|
||||
|
||||
if (errors)
|
||||
return usage_lf_em4x50_std_read();
|
||||
return usage_lf_em4x50_stdread();
|
||||
|
||||
// start
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_LF_EM4X50_STD_READ, 0, 0);
|
||||
if (!WaitForResponseTimeout(CMD_LF_EM4X50_STD_READ, &resp, TIMEOUT)) {
|
||||
SendCommandNG(CMD_LF_EM4X50_STDREAD, 0, 0);
|
||||
if (!WaitForResponseTimeout(CMD_LF_EM4X50_STDREAD, &resp, TIMEOUT)) {
|
||||
PrintAndLogEx(WARNING, "Timeout while waiting for reply.");
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user