summaryrefslogtreecommitdiff
path: root/CommandTerminal/CmdGetSurveyDataFile.cpp
diff options
context:
space:
mode:
authorLeon Lindenfelser <llindenfelser@multitech.com>2015-11-16 16:18:09 -0600
committerLeon Lindenfelser <llindenfelser@multitech.com>2015-11-16 16:18:09 -0600
commitf484beed77531d7ef2da65cf049fe9c4ac6b7d08 (patch)
tree4b7c15b9ec44819e1e1488b020f164143241d88e /CommandTerminal/CmdGetSurveyDataFile.cpp
parente6bfab044122be837c2235a6bf634b369c753e9c (diff)
downloadmtdot-box-evb-factory-firmware-f484beed77531d7ef2da65cf049fe9c4ac6b7d08.tar.gz
mtdot-box-evb-factory-firmware-f484beed77531d7ef2da65cf049fe9c4ac6b7d08.tar.bz2
mtdot-box-evb-factory-firmware-f484beed77531d7ef2da65cf049fe9c4ac6b7d08.zip
Added all the new dotbox commands with some detail work still needed
Diffstat (limited to 'CommandTerminal/CmdGetSurveyDataFile.cpp')
-rw-r--r--CommandTerminal/CmdGetSurveyDataFile.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/CommandTerminal/CmdGetSurveyDataFile.cpp b/CommandTerminal/CmdGetSurveyDataFile.cpp
new file mode 100644
index 0000000..11d9ae3
--- /dev/null
+++ b/CommandTerminal/CmdGetSurveyDataFile.cpp
@@ -0,0 +1,19 @@
+#include "CmdGetSurveyDataFile.h"
+
+CmdGetSurveyDataFile::CmdGetSurveyDataFile(mDot* dot, mts::MTSSerial& serial) :
+ Command(dot, "Get Survey Data File", "AT+GSDF", "Outputs the survey data file to the command port"), _serial(serial)
+{
+ _help = std::string(text()) + ": " + std::string(desc());
+}
+
+uint32_t CmdGetSurveyDataFile::action(std::vector<std::string> args)
+{
+//ToDo: Output the file contents line by line.
+ if (!_dot->saveConfig()) {
+ setErrorMessage("Failed to save to flash");
+ return 1;
+ }
+
+ return 0;
+
+}