few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
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 }
Generated on Tue Jul 12 2022 16:01:23 by 1.7.2