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: NCP5623B GpsParser ISL29011 libmDot-mbed5 MTS-Serial MMA845x DOGS102 MPL3115A2
Diff: LoRaHandler/LoRaHandler.cpp
- Revision:
- 7:a31236c2e75c
- Parent:
- 1:71125aa00e33
- Child:
- 12:05435282f899
--- 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; } +