mDot AT-Firmware for testing

Dependencies:   MTS-Serial libmDot-mbed5

Fork of Dot-AT-Firmware by MultiTech

CommandTerminal/CmdSaveConfig.cpp

Committer:
Fran6
Date:
2017-08-14
Revision:
16:3b1d46c1db11
Parent:
14:f9a77400b622

File content as of revision 16:3b1d46c1db11:

#include "CmdSaveConfig.h"

CmdSaveConfig::CmdSaveConfig() : Command("Save Configuration", "AT&W", "Save configuration to flash memory", "NONE")
{
}


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