From d3f093ca4af99c6c48cb012a0781485dcb49af52 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 22 Mar 2021 18:07:33 +0100 Subject: [PATCH] data plot, hide, now uses cliparser --- client/src/cmddata.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 374b33880..97026e644 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -1542,7 +1542,17 @@ static int CmdHexsamples(const char *Cmd) { } static int CmdHide(const char *Cmd) { - (void)Cmd; // Cmd is not used so far + CLIParserContext *ctx; + CLIParserInit(&ctx, "data hide", + "Show graph window", + "data hide" + ); + void *argtable[] = { + arg_param_begin, + arg_param_end + }; + CLIExecWithReturn(ctx, Cmd, argtable, true); + CLIParserFree(ctx); HideGraphWindow(); return PM3_SUCCESS; } @@ -1686,7 +1696,8 @@ int CmdTuneSamples(const char *Cmd) { int timeout = 0; int timeout_max = 20; - PrintAndLogEx(INFO, "Reminder: `" _YELLOW_("hw tune") "` doesn't actively tune your antennas,"); + PrintAndLogEx(INFO, "---------- " _CYAN_("Reminder") " ------------------------"); + PrintAndLogEx(INFO, "`" _YELLOW_("hw tune") "` doesn't actively tune your antennas,"); PrintAndLogEx(INFO, "it's only informative."); PrintAndLogEx(INFO, "Measuring antenna characteristics, please wait...");