Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libxDot-dev-mbed5-deprecated
Fork of Dot-AT-Firmware by
Diff: CommandTerminal/CmdFactoryDefault.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 1:e52ae6584f1c
--- a/CommandTerminal/CmdFactoryDefault.cpp Fri Nov 04 19:10:24 2016 +0000
+++ b/CommandTerminal/CmdFactoryDefault.cpp Fri Nov 04 14:25:43 2016 -0500
@@ -1,15 +1,14 @@
#include "CmdFactoryDefault.h"
-CmdFactoryDefault::CmdFactoryDefault(mDot* dot) : Command(dot, "Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults")
+CmdFactoryDefault::CmdFactoryDefault() : Command("Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults", "NONE")
{
- _help = std::string(text()) + ": " + std::string(desc());
}
uint32_t CmdFactoryDefault::action(std::vector<std::string> args)
{
- _dot->resetConfig();
- _dot->resetNetworkSession();
+ CommandTerminal::Dot()->resetConfig();
+ CommandTerminal::Dot()->resetNetworkSession();
return 0;
}
