mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
switch off watch ID when starting new console
This commit is contained in:
@@ -520,10 +520,13 @@ void Console::start() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(EMSESP_STANDALONE)
|
#if defined(EMSESP_STANDALONE)
|
||||||
|
// always start in su/admin mode when running tests
|
||||||
shell->add_flags(CommandFlags::ADMIN);
|
shell->add_flags(CommandFlags::ADMIN);
|
||||||
#endif
|
#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)
|
// 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
|
// note, this must be started after the network/wifi for ESP32 otherwise it'll crash
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
|
|||||||
Reference in New Issue
Block a user