mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
remove set command (with no args)
This commit is contained in:
@@ -345,15 +345,6 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
|
|||||||
"local");
|
"local");
|
||||||
});
|
});
|
||||||
|
|
||||||
commands->add_command(ShellContext::MAIN, CommandFlags::USER, string_vector{F_(set)}, [](Shell & shell, const std::vector<std::string> & arguments) {
|
|
||||||
to_app(shell).webSettingsService.read([&](WebSettings & settings) {
|
|
||||||
shell.printfln("Language: %s", settings.locale.c_str());
|
|
||||||
shell.printfln(F_(tx_mode_fmt), settings.tx_mode);
|
|
||||||
shell.printfln(F_(bus_id_fmt), settings.ems_bus_id);
|
|
||||||
shell.printfln(F_(board_profile_fmt), settings.board_profile.c_str());
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EMS device commands
|
// EMS device commands
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ MAKE_WORD_CUSTOM(EMSESP, "EMS-ESP")
|
|||||||
MAKE_WORD_CUSTOM(host_fmt, "Host: %s")
|
MAKE_WORD_CUSTOM(host_fmt, "Host: %s")
|
||||||
MAKE_WORD_CUSTOM(port_fmt, "Port: %d")
|
MAKE_WORD_CUSTOM(port_fmt, "Port: %d")
|
||||||
MAKE_WORD_CUSTOM(hostname_fmt, "Hostname: %s")
|
MAKE_WORD_CUSTOM(hostname_fmt, "Hostname: %s")
|
||||||
MAKE_WORD_CUSTOM(board_profile_fmt, "Board Profile: %s")
|
|
||||||
MAKE_WORD_CUSTOM(mark_interval_fmt, "Mark interval: %lus")
|
MAKE_WORD_CUSTOM(mark_interval_fmt, "Mark interval: %lus")
|
||||||
MAKE_WORD_CUSTOM(wifi_ssid_fmt, "WiFi SSID: %s")
|
MAKE_WORD_CUSTOM(wifi_ssid_fmt, "WiFi SSID: %s")
|
||||||
MAKE_WORD_CUSTOM(wifi_password_fmt, "WiFi Password: %S")
|
MAKE_WORD_CUSTOM(wifi_password_fmt, "WiFi Password: %S")
|
||||||
|
|||||||
@@ -895,6 +895,8 @@ void System::show_system(uuid::console::Shell & shell) {
|
|||||||
refreshHeapMem(); // refresh free heap and max alloc heap
|
refreshHeapMem(); // refresh free heap and max alloc heap
|
||||||
|
|
||||||
shell.println("System:");
|
shell.println("System:");
|
||||||
|
shell.printfln(" Version: %s", EMSESP_APP_VERSION);
|
||||||
|
shell.printfln(" Language: %s", locale().c_str());
|
||||||
shell.printfln(" Board profile: %s", board_profile().c_str());
|
shell.printfln(" Board profile: %s", board_profile().c_str());
|
||||||
shell.printfln(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str());
|
shell.printfln(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str());
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
|
|||||||
Reference in New Issue
Block a user