From 0dc3fd43e9a2b69f3a51b5cb87a9bde7b842cfee Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 6 Nov 2025 12:57:13 +0100 Subject: [PATCH] remove comment, rollback changes --- src/core/command.cpp | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/core/command.cpp b/src/core/command.cpp index 0f388d770..aee649dd6 100644 --- a/src/core/command.cpp +++ b/src/core/command.cpp @@ -367,7 +367,6 @@ uint8_t Command::call(const uint8_t device_type, const char * command, const cha // or a special command like 'info', 'values', 'commands', 'entities' etc bool single_command = (!value || !strlen(value)); if (single_command) { - Serial.println("single_command"); if (!strcmp(cmd, F_(commands))) { return Command::list(device_type, output); } @@ -584,11 +583,14 @@ bool Command::list(const uint8_t device_type, JsonObject output) { output[F_(entities)] = Helpers::translated_word(FL_(entities_cmd)); if (device_type == EMSdevice::DeviceType::SYSTEM) { - output["settings"] = Helpers::translated_word(FL_(system_cmd)); - output["mqtt"] = Helpers::translated_word(FL_(system_cmd)); - output["ntp"] = Helpers::translated_word(FL_(system_cmd)); - output["ap"] = Helpers::translated_word(FL_(system_cmd)); - output["syslog"] = Helpers::translated_word(FL_(system_cmd)); + output["settings/showertimer"] = Helpers::translated_word(FL_(system_cmd)); + output["settings/showeralert"] = Helpers::translated_word(FL_(system_cmd)); + output["settings/hideled"] = Helpers::translated_word(FL_(system_cmd)); + output["settings/analogenabled"] = Helpers::translated_word(FL_(system_cmd)); + output["mqtt/enabled"] = Helpers::translated_word(FL_(system_cmd)); + output["ntp/enabled"] = Helpers::translated_word(FL_(system_cmd)); + output["ap/enabled"] = Helpers::translated_word(FL_(system_cmd)); + output["syslog/enabled"] = Helpers::translated_word(FL_(system_cmd)); } // create a list of commands we have registered, and sort them @@ -620,11 +622,14 @@ void Command::show(uuid::console::Shell & shell, uint8_t device_type, bool verbo } } if (device_type == EMSdevice::DeviceType::SYSTEM) { - sorted_cmds.emplace_back("settings"); - sorted_cmds.emplace_back("mqtt"); - sorted_cmds.emplace_back("ntp"); - sorted_cmds.emplace_back("ap"); - sorted_cmds.emplace_back("syslog"); + sorted_cmds.emplace_back("settings/showertimer"); + sorted_cmds.emplace_back("settings/showeralert"); + sorted_cmds.emplace_back("settings/hideled"); + sorted_cmds.emplace_back("settings/analogenabled"); + sorted_cmds.emplace_back("mqtt/enabled"); + sorted_cmds.emplace_back("ntp/enabled"); + sorted_cmds.emplace_back("ap/enabled"); + sorted_cmds.emplace_back("syslog/enabled"); } sorted_cmds.sort(); // sort them