Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MTS-Serial libxDot-mbed5
Diff: CommandTerminal/CmdSendContinuous.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 4:666017851052
--- a/CommandTerminal/CmdSendContinuous.cpp Fri Nov 04 19:10:24 2016 +0000 +++ b/CommandTerminal/CmdSendContinuous.cpp Fri Nov 04 14:25:43 2016 -0500 @@ -1,17 +1,15 @@ #include "CmdSendContinuous.h" #include "CommandTerminal.h" -CmdSendContinuous::CmdSendContinuous(mDot* dot, mts::MTSSerial& serial) -: - Command(dot, "Send Continuous", "AT+SENDC", "Send un-modulated data continuously"), - _serial(serial) { - _help = std::string(text()) + ": " + std::string(desc()); - _usage = "(string:242)"; +CmdSendContinuous::CmdSendContinuous() +: Command("Send Continuous", "AT+SENDC", "Send un-modulated data continuously", "(string:242)") { } uint32_t CmdSendContinuous::action(std::vector<std::string> args) { - _dot->sendContinuous(); + CommandTerminal::Dot()->sendContinuous(true); + CommandTerminal::Serial()->clearEscaped(); + return 0; }