mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
don't default to su/admin when in Serial Console
This commit is contained in:
@@ -1776,10 +1776,10 @@ void EMSESP::loop() {
|
|||||||
void EMSESP::start_serial_console() {
|
void EMSESP::start_serial_console() {
|
||||||
shell_ = std::make_shared<EMSESPConsole>(*this, serial_console_, true);
|
shell_ = std::make_shared<EMSESPConsole>(*this, serial_console_, true);
|
||||||
shell_->maximum_log_messages(100);
|
shell_->maximum_log_messages(100);
|
||||||
shell_->add_flags(CommandFlags::ADMIN); // always start in su/admin mode when running tests
|
|
||||||
shell_->start();
|
shell_->start();
|
||||||
#if defined(EMSESP_DEBUG)
|
#if defined(EMSESP_DEBUG)
|
||||||
shell_->log_level(uuid::log::Level::DEBUG);
|
shell_->log_level(uuid::log::Level::DEBUG);
|
||||||
|
shell_->add_flags(CommandFlags::ADMIN); // always start in su/admin mode when compiled with debug
|
||||||
#else
|
#else
|
||||||
shell_->log_level(uuid::log::Level::TRACE);
|
shell_->log_level(uuid::log::Level::TRACE);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user