From dd557b5a21d64cd49b1179ac891ffb2c63dee6d8 Mon Sep 17 00:00:00 2001 From: Leon Lindenfelser Date: Fri, 13 Nov 2015 08:14:28 -0600 Subject: Added CommandTerminal with unneccessary commands removed --- CommandTerminal/CmdFactoryDefault.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CommandTerminal/CmdFactoryDefault.cpp (limited to 'CommandTerminal/CmdFactoryDefault.cpp') diff --git a/CommandTerminal/CmdFactoryDefault.cpp b/CommandTerminal/CmdFactoryDefault.cpp new file mode 100644 index 0000000..53b6ede --- /dev/null +++ b/CommandTerminal/CmdFactoryDefault.cpp @@ -0,0 +1,15 @@ +#include "CmdFactoryDefault.h" + +CmdFactoryDefault::CmdFactoryDefault(mDot* dot) : Command(dot, "Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults") +{ + _help = std::string(text()) + ": " + std::string(desc()); +} + + +uint32_t CmdFactoryDefault::action(std::vector args) +{ + _dot->resetConfig(); + _dot->resetNetworkSession(); + return 0; +} + -- cgit v1.2.3