mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
do not close local shell #1926
This commit is contained in:
@@ -85,7 +85,7 @@ void Shell::stop() {
|
|||||||
|
|
||||||
blocking_data->stop_ = true;
|
blocking_data->stop_ = true;
|
||||||
} else {
|
} else {
|
||||||
if (running()) {
|
if (running() && !has_flags(CommandFlags::LOCAL)) { // do not close local shell
|
||||||
stopped_ = true;
|
stopped_ = true;
|
||||||
stopped();
|
stopped();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,8 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
|
||||||
|
|
||||||
namespace uuid {
|
namespace uuid {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
namespace emsesp {
|
namespace emsesp {
|
||||||
|
|
||||||
enum CommandFlags : uint8_t { USER = 0, ADMIN = (1 << 0), LOCAL = (1 << 1) };
|
|
||||||
|
|
||||||
enum ShellContext : uint8_t { MAIN = 0, SYSTEM, END };
|
enum ShellContext : uint8_t { MAIN = 0, SYSTEM, END };
|
||||||
|
|
||||||
class EMSESP;
|
class EMSESP;
|
||||||
|
|||||||
Reference in New Issue
Block a user