summaryrefslogtreecommitdiff
path: root/Mode/ModeJoin.cpp
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-03 12:15:10 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-03 12:15:10 -0600
commitc3d181e2c45f8b4ddc6572a9834082413fb91817 (patch)
treec908d8acc58b7eb71769cfa2bdb81f3a3f866ddd /Mode/ModeJoin.cpp
parent2cd88147a991bed2e0e71bbc028078bd15838161 (diff)
downloadmtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.tar.gz
mtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.tar.bz2
mtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.zip
turn off acks and receive windows for survey data packets, use mDot handle for data rate, power, etc instead of lora handler
Diffstat (limited to 'Mode/ModeJoin.cpp')
-rw-r--r--Mode/ModeJoin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mode/ModeJoin.cpp b/Mode/ModeJoin.cpp
index c992eff..9adbd55 100644
--- a/Mode/ModeJoin.cpp
+++ b/Mode/ModeJoin.cpp
@@ -22,12 +22,12 @@ bool ModeJoin::start() {
display();
- _lora->setDataRate(_data_rate);
- _lora->setPower(_power);
+ _dot->setTxDataRate(_data_rate);
+ _dot->setTxPower(_power);
_lora->resetJoinAttempts();
while (! _joined) {
- _next_tx = _lora->getNextTx();
+ _next_tx = _dot->getNextTxMs();
if (_next_tx) {
logInfo("next tx %lu ms", _next_tx);
_join.updateStatus("Waiting...");