mDot AT-Firmware for testing
Dependencies: MTS-Serial libmDot-mbed5
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; }