diff options
Diffstat (limited to 'CommandTerminal/CmdExit.cpp')
-rw-r--r-- | CommandTerminal/CmdExit.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/CommandTerminal/CmdExit.cpp b/CommandTerminal/CmdExit.cpp deleted file mode 100644 index 46923b3..0000000 --- a/CommandTerminal/CmdExit.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "CmdExit.h" - -CmdExit::CmdExit(mDot* dot, mts::MTSSerial& serial) : - Command(dot, "Exit", "AT+EXIT", "Exit from command mode to main menu"), _serial(serial) -{ - _help = std::string(text()) + ": " + std::string(desc()); -} - -uint32_t CmdExit::action(std::vector<std::string> args) -{ -//ToDo: Probably setting or clearing a flag to indicate to some other task to shut down command mode and display the main menu. - if (!_dot->saveConfig()) { - setErrorMessage("Failed to save to flash"); - return 1; - } - - return 0; - -} |