blob: 7609024309b1aafb85d27fc4b53d010eb8df59a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "CmdWriteProtectedConfig.h"
CmdWriteProtectedConfig::CmdWriteProtectedConfig(mDot* dot) :
Command(dot, "Write Protected Config", "AT&WP", "Write protected config to flash (DeviceId and Frequency Band)")
{
_help = std::string(text()) + ": " + std::string(desc());
}
uint32_t CmdWriteProtectedConfig::action(std::vector<std::string> args)
{
if (!_dot->saveProtectedConfig()) {
setErrorMessage("Failed to save to flash");
return 1;
}
return 0;
}
|