remove duplicate ctrl-c prompt

This commit is contained in:
proddy
2024-09-17 14:12:52 +02:00
parent 661a7cfde9
commit 64d4e4a2ac

View File

@@ -1692,14 +1692,13 @@ void EMSESP::loop() {
static bool show_prompt = true; static bool show_prompt = true;
// user has to ctrl-c to create a serial console stream, exit command will close it // user has to ctrl-c to create a serial console stream, exit command will close it
// this is to save around 2kb of heap memory // this saves around 2kb of heap memory
if (shell_) { if (shell_) {
if (!shell_->running()) { if (!shell_->running()) {
shell_.reset(); shell_.reset();
#ifdef EMSESP_STANDALONE #ifdef EMSESP_STANDALONE
::exit(0); // kill session ::exit(0); // kill session
#endif #endif
shell_prompt();
} }
} else { } else {
if (show_prompt) { if (show_prompt) {