enable watch when in standalone test mode

This commit is contained in:
proddy
2020-09-04 12:31:36 +02:00
parent f9bdcfeae2
commit e76bdd76b1

View File

@@ -88,9 +88,13 @@ void EMSESPShell::display_banner() {
// load the list of commands // load the list of commands
add_console_commands(); add_console_commands();
// turn off watch // turn off watch, unless is test mode
emsesp::EMSESP::watch_id(WATCH_ID_NONE); emsesp::EMSESP::watch_id(WATCH_ID_NONE);
#if defined(EMSESP_STANDALONE)
emsesp::EMSESP::watch(EMSESP::WATCH_ON);
#else
emsesp::EMSESP::watch(EMSESP::WATCH_OFF); emsesp::EMSESP::watch(EMSESP::WATCH_OFF);
#endif
} }
// pre-loads all the console commands into the MAIN context // pre-loads all the console commands into the MAIN context
@@ -558,7 +562,7 @@ void Console::start() {
#endif #endif
// turn watch off in case it was still set in the last session // turn watch off in case it was still set in the last session
emsesp::EMSESP::watch(EMSESP::WATCH_OFF); // emsesp::EMSESP::watch(EMSESP::WATCH_OFF);
} }
// handles telnet sync and logging to console // handles telnet sync and logging to console