From f484beed77531d7ef2da65cf049fe9c4ac6b7d08 Mon Sep 17 00:00:00 2001 From: Leon Lindenfelser Date: Mon, 16 Nov 2015 16:18:09 -0600 Subject: Added all the new dotbox commands with some detail work still needed --- CommandTerminal/CmdGetSurveyDataFile.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CommandTerminal/CmdGetSurveyDataFile.cpp (limited to 'CommandTerminal/CmdGetSurveyDataFile.cpp') 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 args) +{ +//ToDo: Output the file contents line by line. + if (!_dot->saveConfig()) { + setErrorMessage("Failed to save to flash"); + return 1; + } + + return 0; + +} -- cgit v1.2.3