summaryrefslogtreecommitdiff
path: root/CommandTerminal/CmdDeleteSurveyDataFile.cpp
blob: d6eca221663353b3a61b6c040c5efdd74465e85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "CmdDeleteSurveyDataFile.h"

CmdDeleteSurveyDataFile::CmdDeleteSurveyDataFile(mDot* dot, mts::MTSSerial& serial) :
        Command(dot, "Delete Survey Data File", "AT+DSDF", "Delete the survey data file"), _serial(serial)
{
    _help = std::string(text()) + ": " + std::string(desc());
}

uint32_t CmdDeleteSurveyDataFile::action(std::vector<std::string> args)
{
//ToDo: Delete the file.
	if (!_dot->saveConfig()) {
	  setErrorMessage("Failed to save to flash");
	  return 1;
	}
	
	return 0;

}