From ee6a09c9df7597717a75a6ceac0f1bc7541c52e6 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 8 Jun 2021 18:22:18 +0200 Subject: [PATCH] do not default to info if no command specificied --- src/console.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/console.cpp b/src/console.cpp index dc11cd403..06a0f3a53 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -377,14 +377,14 @@ void EMSESPShell::add_console_commands() { JsonObject json = doc.to(); bool ok = false; - // validate the command + // validate that a command is present if (arguments.size() < 2) { - // no cmd specified, default to empty command - if (Command::call(device_type, "", "", -1, json)) { - serializeJsonPretty(doc, shell); - shell.println(); - return; - } + // // no cmd specified, default to empty command + // if (Command::call(device_type, "", "", -1, json)) { + // serializeJsonPretty(doc, shell); + // shell.println(); + // return; + // } shell.print(F("Missing command. Available commands are: ")); Command::show(shell, device_type, false); // non-verbose mode return;