![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdSaveConfig.cpp
- Committer:
- Mike Fiore
- Date:
- 2015-06-25
- Revision:
- 1:e52ae6584f1c
- Child:
- 14:f9a77400b622
File content as of revision 1:e52ae6584f1c:
#include "CmdSaveConfig.h" CmdSaveConfig::CmdSaveConfig(mDot* dot) : Command(dot, "Save Configuration", "AT&W", "Save configuration to flash memory") { _help = std::string(text()) + ": " + std::string(desc()); } uint32_t CmdSaveConfig::action(std::vector<std::string> args) { if (!_dot->saveConfig()) { setErrorMessage("Failed to save to flash"); return 1; } return 0; }