firm newest

Dependencies:   MTS-Serial libmDot-dev-mbed5-deprecated

Committer:
nguyenhoang9x5555
Date:
Thu Oct 18 04:18:48 2018 +0000
Revision:
0:3c869a8cb8f8
DOT AT FIRMWARE 18102018

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nguyenhoang9x5555 0:3c869a8cb8f8 1 #include "CmdWriteProtectedConfig.h"
nguyenhoang9x5555 0:3c869a8cb8f8 2
nguyenhoang9x5555 0:3c869a8cb8f8 3 CmdWriteProtectedConfig::CmdWriteProtectedConfig() :
nguyenhoang9x5555 0:3c869a8cb8f8 4 Command("Write Protected Config", "AT&WP", "Write protected config to flash (DeviceId and Frequency Band)", "NONE")
nguyenhoang9x5555 0:3c869a8cb8f8 5 {
nguyenhoang9x5555 0:3c869a8cb8f8 6 }
nguyenhoang9x5555 0:3c869a8cb8f8 7
nguyenhoang9x5555 0:3c869a8cb8f8 8 uint32_t CmdWriteProtectedConfig::action(std::vector<std::string> args)
nguyenhoang9x5555 0:3c869a8cb8f8 9 {
nguyenhoang9x5555 0:3c869a8cb8f8 10 if (!CommandTerminal::Dot()->saveProtectedConfig()) {
nguyenhoang9x5555 0:3c869a8cb8f8 11 CommandTerminal::setErrorMessage("Failed to save to flash");
nguyenhoang9x5555 0:3c869a8cb8f8 12 return 1;
nguyenhoang9x5555 0:3c869a8cb8f8 13 }
nguyenhoang9x5555 0:3c869a8cb8f8 14
nguyenhoang9x5555 0:3c869a8cb8f8 15 return 0;
nguyenhoang9x5555 0:3c869a8cb8f8 16 }