From 4eca51c3e24bc3ff09d108e751ed55bd6c04b7b3 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 21 Jul 2020 14:31:54 +0200 Subject: [PATCH] switch off watch ID when starting new console --- src/console.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/console.cpp b/src/console.cpp index 09ce690df..fe7020ff1 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -520,10 +520,13 @@ void Console::start() { #endif #if defined(EMSESP_STANDALONE) + // always start in su/admin mode when running tests shell->add_flags(CommandFlags::ADMIN); #endif -// always start the telnet service, except on an ESP8266 + emsesp::EMSESP::watch(EMSESP::WATCH_OFF); // turn watch off in case it was still set in the last session + +// start the telnet service // default idle is 10 minutes, default write timeout is 0 (automatic) // note, this must be started after the network/wifi for ESP32 otherwise it'll crash #ifndef EMSESP_STANDALONE