firm newest
Dependencies: MTS-Serial libmDot-dev-mbed5-deprecated
Diff: CommandTerminal/CmdDummy.cpp
- Revision:
- 0:3c869a8cb8f8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandTerminal/CmdDummy.cpp Thu Oct 18 04:18:48 2018 +0000 @@ -0,0 +1,20 @@ +#include "CmdDummy.h" + +CmdDummy::CmdDummy(const char* name, const char* txt, const char* dsc, const char* usage) : + Command(name, txt, dsc, usage) { + +} + + +uint32_t CmdDummy::action(std::vector<std::string> args) { + return 0; +} + +bool CmdDummy::verify(std::vector<std::string> args) { + if (args.size() > 1) { + CommandTerminal::setErrorMessage("Invalid Arguments"); + return false; + } + + return true; +}