AT terminal for the mDot using the USB debug port instead of the serial port.
Dependencies: MTS-Serial libmDot-mbed5
Fork of Dot-AT-Firmware by
CommandTerminal/CmdResetStats.cpp@4:666017851052, 2015-08-18 (annotated)
- Committer:
- Mike Fiore
- Date:
- Tue Aug 18 11:21:43 2015 -0500
- Revision:
- 4:666017851052
- Child:
- 14:f9a77400b622
update mdot-firmware to 0.1.2
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 |