From 11412cbac7021dd8aee14ac4f1dc25994c9ab45b Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Thu, 19 Nov 2015 12:43:39 -0600 Subject: add info line to help layout --- Mode/ModeJoin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mode') diff --git a/Mode/ModeJoin.cpp b/Mode/ModeJoin.cpp index 492f669..5af4dcd 100644 --- a/Mode/ModeJoin.cpp +++ b/Mode/ModeJoin.cpp @@ -45,14 +45,14 @@ bool ModeJoin::start() { while (! _joined) { _next_tx = _lora->getNextTx(); if (_next_tx) { - _join.updateCountdown(_next_tx * 1000); + _join.updateCountdown(_next_tx / 1000); } else { - _join.updateAttempt(_index++); _join.updateStatus("Joining..."); - _lora->join(); + if (_lora->join()) + _join.updateAttempt(_index++); } - osEvent e = Thread::signal_wait(0); + osEvent e = Thread::signal_wait(0, 500); if (e.status == osEventSignal) { if (e.value.signals & buttonSignal) { _be = _buttons->getButtonEvent(); -- cgit v1.2.3