MTDOT-BOX-EVB-Factory-Firmware

Dependencies:   NCP5623B GpsParser ISL29011 libmDot-mbed5 MTS-Serial MMA845x DOGS102 MPL3115A2

Revision:
5:10ea08959743
Parent:
1:71125aa00e33
Child:
7:a31236c2e75c
diff -r 13fa673bb966 -r 10ea08959743 Mode/ModeJoin.cpp
--- a/Mode/ModeJoin.cpp	Tue May 31 13:12:21 2016 -0500
+++ b/Mode/ModeJoin.cpp	Mon Jul 11 14:06:36 2016 +0000
@@ -34,6 +34,11 @@
     // 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();