summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Klaassen <ryan.klaassen@multitech.com>2016-07-28 10:34:05 -0500
committerRyan Klaassen <ryan.klaassen@multitech.com>2016-07-28 10:34:05 -0500
commit345b51d7c6a85e6d7cb7d507af7df104e65e99af (patch)
tree6ca6d4afbfcb2345ed3d2fbc37eca66a8060a309
parent8697ebad4fa5cc1b223cd8bc6c7ebd833dfcee79 (diff)
downloadmtdot-box-evb-factory-firmware-345b51d7c6a85e6d7cb7d507af7df104e65e99af.tar.gz
mtdot-box-evb-factory-firmware-345b51d7c6a85e6d7cb7d507af7df104e65e99af.tar.bz2
mtdot-box-evb-factory-firmware-345b51d7c6a85e6d7cb7d507af7df104e65e99af.zip
Replace LoRaHandler.cpp
-rw-r--r--LoRaHandler/LoRaHandler.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/LoRaHandler/LoRaHandler.cpp b/LoRaHandler/LoRaHandler.cpp
index de9f0b1..d52ca54 100644
--- a/LoRaHandler/LoRaHandler.cpp
+++ b/LoRaHandler/LoRaHandler.cpp
@@ -87,12 +87,16 @@ void l_worker(void const* argument) {
l->_mutex.unlock();
if (ret == mDot::MDOT_OK) {
l->_status = LoRaHandler::join_success;
+ osSignalSet(l->_main, loraSignal);
+ l->_tick.detach();
+ l->_activity_led = LoRaHandler::green;
} else {
l->_status = LoRaHandler::join_failure;
+ osSignalSet(l->_main, loraSignal);
+ l->_tick.detach();
+ l->_activity_led = LoRaHandler::red;
}
- osSignalSet(l->_main, loraSignal);
- l->_tick.detach();
- l->_activity_led = LoRaHandler::green;
+
break;
default:
@@ -180,3 +184,4 @@ void LoRaHandler::resetActivityLed() {
_activity_led = red;
}
+