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 MultiTech

Revision:
14:f9a77400b622
Parent:
1:e52ae6584f1c
--- a/CommandTerminal/CmdSaveConfig.cpp	Fri Nov 04 19:10:24 2016 +0000
+++ b/CommandTerminal/CmdSaveConfig.cpp	Fri Nov 04 14:25:43 2016 -0500
@@ -1,15 +1,14 @@
 #include "CmdSaveConfig.h"
 
-CmdSaveConfig::CmdSaveConfig(mDot* dot) : Command(dot, "Save Configuration", "AT&W", "Save configuration to flash memory")
+CmdSaveConfig::CmdSaveConfig() : Command("Save Configuration", "AT&W", "Save configuration to flash memory", "NONE")
 {
-    _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");
+    if (!CommandTerminal::Dot()->saveConfig()) {
+      CommandTerminal::setErrorMessage("Failed to save to flash");
       return 1;
     }