with 36errors

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

Fork of Dot-AT-Firmware by MultiTech

CommandTerminal/CmdSaveConfig.cpp

Committer:
Mike Fiore
Date:
2015-06-25
Revision:
1:e52ae6584f1c
Child:
14:f9a77400b622

File content as of revision 1:e52ae6584f1c:

#include "CmdSaveConfig.h"

CmdSaveConfig::CmdSaveConfig(mDot* dot) : Command(dot, "Save Configuration", "AT&W", "Save configuration to flash memory")
{
    _help = std::string(text()) + ": " + std::string(desc());
}


uint32_t CmdSaveConfig::action(std::vector<std::string> args)
{
    if (!_dot->saveConfig()) {
      setErrorMessage("Failed to save to flash");
      return 1;
    }
    
    return 0;
}