Skip to content

Commit

Permalink
remove set command (with no args)
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Nov 11, 2023
1 parent a45f1ba commit 765e6bc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,6 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
"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
//
Expand Down
1 change: 0 additions & 1 deletion src/locale_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions src/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 765e6bc

Please sign in to comment.