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 libmDot-mbed5
Fork of Dot-AT-Firmware by
Diff: CommandTerminal/CmdTxNextMs.cpp
- Revision:
- 14:f9a77400b622
- Parent:
- 2:e5eebd74d36d
diff -r b0f5ae12dc05 -r f9a77400b622 CommandTerminal/CmdTxNextMs.cpp
--- a/CommandTerminal/CmdTxNextMs.cpp Fri Nov 04 19:10:24 2016 +0000
+++ b/CommandTerminal/CmdTxNextMs.cpp Fri Nov 04 14:25:43 2016 -0500
@@ -1,19 +1,13 @@
#include "CmdTxNextMs.h"
-CmdTxNextMs::CmdTxNextMs(mDot* dot, mts::MTSSerial& serial)
-: Command(dot, "Tx Next", "AT+TXN", "Get time in ms until next free channel"), _serial(serial) {
- _help = std::string(text()) + ": " + std::string(desc());
- _usage = "(0-2793000)";
+CmdTxNextMs::CmdTxNextMs()
+: Command("Tx Next", "AT+TXN", "Get time in ms until next free channel", "(0-2793000)") {
_queryable = true;
}
uint32_t CmdTxNextMs::action(std::vector<std::string> args) {
- if (_dot->getVerbose())
- _serial.writef("Next Tx in: ");
-
- _serial.writef("%lu\r\n", _dot->getNextTxMs());
-
+ CommandTerminal::Serial()->writef("%lu\r\n", CommandTerminal::Dot()->getNextTxMs());
return 0;
}
