blob: 325ee7c2e240261c7a310ffda916a8969cab76ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "CmdDeleteSurveyDataFile.h"
#include "FileName.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)
{
if (!_dot->deleteUserFile(file_name)) {
setErrorMessage("Failed to delete survey data file");
return 1;
}
return 0;
}
|