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
Diff: CommandTerminal/CmdJoinRx1Offset.cpp
- Revision:
- 16:d5cf2af81a6d
- Parent:
- 14:f9a77400b622
diff -r e20116281a78 -r d5cf2af81a6d CommandTerminal/CmdJoinRx1Offset.cpp --- a/CommandTerminal/CmdJoinRx1Offset.cpp Fri Nov 04 17:04:54 2016 -0500 +++ b/CommandTerminal/CmdJoinRx1Offset.cpp Mon Jun 19 14:33:21 2017 -0500 @@ -32,23 +32,6 @@ return true; if (args.size() == 2) { - std::string dr = mts::Text::toUpper(args[1]); - - int offset = -1; - sscanf(dr.c_str(), "%d", &offset); - - if (CommandTerminal::Dot()->getFrequencyBand() == mDot::FB_US915 || CommandTerminal::Dot()->getFrequencyBand() == mDot::FB_AU915) { - if (offset < 0 || offset > 3) { - CommandTerminal::setErrorMessage("Invalid offset, expects (0-3)"); - return false; - } - } else { - if (offset < 0 || offset > 5) { - CommandTerminal::setErrorMessage("Invalid offset, expects (0-5)"); - return false; - } - } - return true; }