summaryrefslogtreecommitdiff
path: root/CommandTerminal/CmdFactoryDefault.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CommandTerminal/CmdFactoryDefault.cpp')
-rw-r--r--CommandTerminal/CmdFactoryDefault.cpp15
1 files changed, 15 insertions, 0 deletions
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<std::string> args)
+{
+ _dot->resetConfig();
+ _dot->resetNetworkSession();
+ return 0;
+}
+