few changes for RTS/CTS control

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_AT_firmware by MultiTech

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CmdSaveConfig.cpp Source File

CmdSaveConfig.cpp

00001 #include "CmdSaveConfig.h"
00002 
00003 CmdSaveConfig::CmdSaveConfig(mDot* dot) : Command(dot, "Save Configuration", "AT&W", "Save configuration to flash memory")
00004 {
00005     _help = std::string(text()) + ": " + std::string(desc());
00006 }
00007 
00008 
00009 uint32_t CmdSaveConfig::action(std::vector<std::string> args)
00010 {
00011     if (!_dot->saveConfig()) {
00012       setErrorMessage("Failed to save to flash");
00013       return 1;
00014     }
00015     
00016     return 0;
00017 }