diff options
author | Jason Reiss <jreiss@multitech.com> | 2016-07-11 09:05:58 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2016-07-11 09:05:58 -0500 |
commit | 8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79 (patch) | |
tree | 082d29e4652ea73df5dc585aa463a0eec135f17a | |
parent | 437f8c9febb378559c1c12c840486e539a261d05 (diff) | |
download | mtdot-box-evb-factory-firmware-8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79.tar.gz mtdot-box-evb-factory-firmware-8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79.tar.bz2 mtdot-box-evb-factory-firmware-8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79.zip |
ModeJoin: skip join if set to MANUAL join mode
-rw-r--r-- | Mode/ModeJoin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mode/ModeJoin.cpp b/Mode/ModeJoin.cpp index 4d50508..5618eca 100644 --- a/Mode/ModeJoin.cpp +++ b/Mode/ModeJoin.cpp @@ -34,6 +34,11 @@ bool ModeJoin::start() { // clear any stale signals osSignalClear(_main_id, buttonSignal | loraSignal); + if (_dot->getJoinMode() == mDot::MANUAL) { + // already joined + return true; + } + _initial_data_rate = _dot->getTxDataRate(); _initial_power = _dot->getTxPower(); |