in standalone mode, always go as SU/admin

This commit is contained in:
proddy
2020-06-06 20:56:39 +02:00
parent 321d0d146e
commit 408b78fa34
9 changed files with 447 additions and 169 deletions

View File

@@ -431,6 +431,10 @@ void Console::start() {
shell->maximum_log_messages(100); // default is 50
shell->start();
shell->log_level(uuid::log::Level::DEBUG); // order is: err, warning, notice, info, trace, debug, all
#if defined(EMSESP_STANDALONE)
shell->add_flags(CommandFlags::ADMIN);
#endif
}
// always start the telnet service, except on an ESP8266