few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
CommandTerminal/CmdResetStats.cpp@11:77b7911263da, 2016-10-25 (annotated)
- Committer:
- serg838
- Date:
- Tue Oct 25 05:39:39 2016 +0000
- Revision:
- 11:77b7911263da
- Parent:
- 4:666017851052
RTS/CTS changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
4:666017851052 | 1 | #include "CmdResetStats.h" |
Mike Fiore |
4:666017851052 | 2 | |
Mike Fiore |
4:666017851052 | 3 | CmdResetStats::CmdResetStats(mDot* dot, mts::MTSSerial& serial) |
Mike Fiore |
4:666017851052 | 4 | : |
Mike Fiore |
4:666017851052 | 5 | Command(dot, "Reset Stats", "AT&R", "Reset statistics"), |
Mike Fiore |
4:666017851052 | 6 | _serial(serial), _dot(dot) { |
Mike Fiore |
4:666017851052 | 7 | _help = std::string(text()) + ": " + std::string(desc()); |
Mike Fiore |
4:666017851052 | 8 | } |
Mike Fiore |
4:666017851052 | 9 | |
Mike Fiore |
4:666017851052 | 10 | uint32_t CmdResetStats::action(std::vector<std::string> args) { |
Mike Fiore |
4:666017851052 | 11 | |
Mike Fiore |
4:666017851052 | 12 | _dot->resetStats(); |
Mike Fiore |
4:666017851052 | 13 | |
Mike Fiore |
4:666017851052 | 14 | return 0; |
Mike Fiore |
4:666017851052 | 15 | } |
Mike Fiore |
4:666017851052 | 16 |