with 36errors

Dependencies:   MTS-Serial libxDot-dev-mbed5-deprecated

Fork of Dot-AT-Firmware by MultiTech

Revision:
16:d5cf2af81a6d
Parent:
14:f9a77400b622
--- 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;
     }