mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
do not default to info if no command specificied
This commit is contained in:
@@ -377,14 +377,14 @@ void EMSESPShell::add_console_commands() {
|
|||||||
JsonObject json = doc.to<JsonObject>();
|
JsonObject json = doc.to<JsonObject>();
|
||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
// validate the command
|
// validate that a command is present
|
||||||
if (arguments.size() < 2) {
|
if (arguments.size() < 2) {
|
||||||
// no cmd specified, default to empty command
|
// // no cmd specified, default to empty command
|
||||||
if (Command::call(device_type, "", "", -1, json)) {
|
// if (Command::call(device_type, "", "", -1, json)) {
|
||||||
serializeJsonPretty(doc, shell);
|
// serializeJsonPretty(doc, shell);
|
||||||
shell.println();
|
// shell.println();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
shell.print(F("Missing command. Available commands are: "));
|
shell.print(F("Missing command. Available commands are: "));
|
||||||
Command::show(shell, device_type, false); // non-verbose mode
|
Command::show(shell, device_type, false); // non-verbose mode
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user