Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DOGS102 GpsParser ISL29011 MMA845x MPL3115A2 MTS-Serial NCP5623B libmDot-Custom mDot_Channel_Plans
Fork of MTDOT-BOX-EVB-Factory-Firmware by
Diff: LoRaHandler/LoRaHandler.cpp
- Revision:
- 7:a31236c2e75c
- Parent:
- 1:71125aa00e33
--- a/LoRaHandler/LoRaHandler.cpp Fri Nov 04 22:21:01 2016 +0000
+++ b/LoRaHandler/LoRaHandler.cpp Fri Nov 04 17:27:05 2016 -0500
@@ -87,12 +87,16 @@
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 @@
_activity_led = red;
}
+
