firm newest
Dependencies: MTS-Serial libmDot-dev-mbed5-deprecated
CommandTerminal/CmdDummy.cpp@1:c1c6549b9333, 2018-10-22 (annotated)
- Committer:
- nguyenhoang9x5555
- Date:
- Mon Oct 22 01:56:09 2018 +0000
- Revision:
- 1:c1c6549b9333
- Parent:
- 0:3c869a8cb8f8
hey
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 1 | #include "CmdDummy.h" |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 2 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 3 | CmdDummy::CmdDummy(const char* name, const char* txt, const char* dsc, const char* usage) : |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 4 | Command(name, txt, dsc, usage) { |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 5 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 6 | } |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 7 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 8 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 9 | uint32_t CmdDummy::action(std::vector<std::string> args) { |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 10 | return 0; |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 11 | } |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 12 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 13 | bool CmdDummy::verify(std::vector<std::string> args) { |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 14 | if (args.size() > 1) { |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 15 | CommandTerminal::setErrorMessage("Invalid Arguments"); |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 16 | return false; |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 17 | } |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 18 | |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 19 | return true; |
nguyenhoang9x5555 | 0:3c869a8cb8f8 | 20 | } |