mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 17:59:53 +03:00
a6
This commit is contained in:
@@ -125,7 +125,13 @@ namespace emsesp {
|
||||
using LogLevel = ::uuid::log::Level;
|
||||
using LogFacility = ::uuid::log::Facility;
|
||||
|
||||
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
|
||||
enum CommandFlags : uint8_t {
|
||||
|
||||
USER = 0,
|
||||
ADMIN = (1 << 0),
|
||||
LOCAL = (1 << 1)
|
||||
|
||||
};
|
||||
|
||||
enum ShellContext : uint8_t {
|
||||
|
||||
@@ -147,8 +153,6 @@ class EMSESPShell : virtual public uuid::console::Shell {
|
||||
static std::shared_ptr<uuid::console::Commands> commands;
|
||||
static std::shared_ptr<EMSESPShell> shell;
|
||||
|
||||
void enter_custom_context(unsigned int context);
|
||||
|
||||
protected:
|
||||
EMSESPShell();
|
||||
|
||||
@@ -191,6 +195,9 @@ class Console {
|
||||
|
||||
uuid::log::Level log_level();
|
||||
|
||||
static void enter_custom_context(Shell & shell, unsigned int context);
|
||||
static void load_standard_commands(unsigned int context);
|
||||
|
||||
private:
|
||||
static constexpr unsigned long SERIAL_CONSOLE_BAUD_RATE = 115200;
|
||||
static constexpr auto & serial_console_ = Serial;
|
||||
|
||||
Reference in New Issue
Block a user