summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2016-07-11 09:05:58 -0500
committerJason Reiss <jreiss@multitech.com>2016-07-11 09:05:58 -0500
commit8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79 (patch)
tree082d29e4652ea73df5dc585aa463a0eec135f17a
parent437f8c9febb378559c1c12c840486e539a261d05 (diff)
downloadmtdot-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.cpp5
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();