diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-16 12:48:24 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-16 12:48:24 -0600 |
commit | 097dbc88bfd6303fbc6b08e95cf49a16936a4d67 (patch) | |
tree | e852519d3d656acb44bfd025a6c457c6e53cddec /Mode | |
parent | 29aae3c2d982a21971211d0628cbf9ee57f14800 (diff) | |
download | mtdot-box-evb-factory-firmware-097dbc88bfd6303fbc6b08e95cf49a16936a4d67.tar.gz mtdot-box-evb-factory-firmware-097dbc88bfd6303fbc6b08e95cf49a16936a4d67.tar.bz2 mtdot-box-evb-factory-firmware-097dbc88bfd6303fbc6b08e95cf49a16936a4d67.zip |
update AT command help, add AT+EXIT command so it gets displayed in help
Diffstat (limited to 'Mode')
-rw-r--r-- | Mode/ModeConfig.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mode/ModeConfig.cpp b/Mode/ModeConfig.cpp index 87ce449..bd9e183 100644 --- a/Mode/ModeConfig.cpp +++ b/Mode/ModeConfig.cpp @@ -53,6 +53,7 @@ ModeConfig::ModeConfig(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHand addCommand(new CmdData(_dot, _serial)); addCommand(new CmdGetSurveyDataFile(_dot, _serial)); addCommand(new CmdDeleteSurveyDataFile(_dot, _serial)); + addCommand(new CmdDummy(_dot, "Exit to main menu", "AT+EXIT", "Exit configuration and return to the main menu")); } void ModeConfig::printHelp() { @@ -269,7 +270,7 @@ bool ModeConfig::start() { command.clear(); } else if (args[0].find("AT+EXIT") == 0 && args[0].length() == 7) { write(done); - return true; + return true; } else { bool found = false; bool query = false; |