rem - now uses cliparser'

This commit is contained in:
iceman1001 2020-12-01 15:16:23 +01:00
commit aa5d72a7a6

View file

@ -162,6 +162,19 @@ static int CmdAuto(const char *Cmd) {
} }
int CmdRem(const char *Cmd) { int CmdRem(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "rem",
"Add a text line in log file",
"rem"
);
void *argtable[] = {
arg_param_begin,
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
char buf[22] = {0}; char buf[22] = {0};
AppendDate(buf, sizeof(buf), NULL); AppendDate(buf, sizeof(buf), NULL);
PrintAndLogEx(NORMAL, "%s remark: %s", buf, Cmd); PrintAndLogEx(NORMAL, "%s remark: %s", buf, Cmd);