shell F-commands, remove double prompt output.

This commit is contained in:
MichaelDvP
2020-11-18 10:54:30 +01:00
parent 9e6b2088ae
commit 0b19ea7a0d

View File

@@ -262,9 +262,9 @@ void Shell::loop_normal() {
} else if (esc_ == 20) { // F9 } else if (esc_ == 20) { // F9
set_command_str(F("call system info")); set_command_str(F("call system info"));
} else if (esc_ == 21) { // F10 } else if (esc_ == 21) { // F10
set_command_str(F("call system report")); set_command_str(F("call system settings"));
} else if (esc_ == 23) { // F11 } else if (esc_ == 23) { // F11
line_buffer_ = read_flash_string(F("send telegram \"0B \"")); line_buffer_ = read_flash_string(F("call send \"0B \""));
cursor_ = 1; cursor_ = 1;
} else if (esc_ == 24) { // F12 } else if (esc_ == 24) { // F12
set_command_str(F("log debug; watch raw")); set_command_str(F("log debug; watch raw"));
@@ -395,9 +395,9 @@ void Shell::loop_delay() {
function_copy(*this); function_copy(*this);
if (running()) { // if (running()) {
display_prompt(); // display_prompt();
} // }
idle_time_ = uuid::get_uptime_ms(); idle_time_ = uuid::get_uptime_ms();
} }
@@ -425,9 +425,9 @@ void Shell::loop_blocking() {
stop(); stop();
} }
if (running()) { // if (running()) {
display_prompt(); // display_prompt();
} // }
idle_time_ = uuid::get_uptime_ms(); idle_time_ = uuid::get_uptime_ms();
} }
@@ -568,9 +568,9 @@ void Shell::process_password(bool completed) {
function_copy(*this, completed, line_buffer_); function_copy(*this, completed, line_buffer_);
line_buffer_.clear(); line_buffer_.clear();
if (running()) { // if (running()) {
display_prompt(); // display_prompt();
} // }
} }
void Shell::invoke_command(const std::string & line) { void Shell::invoke_command(const std::string & line) {