mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
remove duplicate ctrl-c prompt
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user