From 765e6bcd69568f1c59096848dee6d1ec6054d6d2 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 11 Nov 2023 09:41:50 +0100 Subject: [PATCH] remove set command (with no args) --- src/console.cpp | 9 --------- src/locale_common.h | 1 - src/system.cpp | 2 ++ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/console.cpp b/src/console.cpp index 846292230..363457785 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -345,15 +345,6 @@ static void setup_commands(std::shared_ptr & commands) { "local"); }); - commands->add_command(ShellContext::MAIN, CommandFlags::USER, string_vector{F_(set)}, [](Shell & shell, const std::vector & 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 // diff --git a/src/locale_common.h b/src/locale_common.h index ff4409082..0135e35cd 100644 --- a/src/locale_common.h +++ b/src/locale_common.h @@ -122,7 +122,6 @@ MAKE_WORD_CUSTOM(EMSESP, "EMS-ESP") MAKE_WORD_CUSTOM(host_fmt, "Host: %s") MAKE_WORD_CUSTOM(port_fmt, "Port: %d") 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(wifi_ssid_fmt, "WiFi SSID: %s") MAKE_WORD_CUSTOM(wifi_password_fmt, "WiFi Password: %S") diff --git a/src/system.cpp b/src/system.cpp index ade342558..be47f261a 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -895,6 +895,8 @@ void System::show_system(uuid::console::Shell & shell) { refreshHeapMem(); // refresh free heap and max alloc heap 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(" Uptime: %s", uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3).c_str()); #ifndef EMSESP_STANDALONE