summaryrefslogtreecommitdiff
path: root/LoRaHandler
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-18 15:10:35 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-18 15:10:35 -0600
commit94990163d2b694373eb5b2b8ccc4d002aad4ecd9 (patch)
tree15a37d6c14b0742b5aa3c2555448bb2b392d7e2c /LoRaHandler
parenta17ec37a0c96a7d204c52ab4f24b11852cdb7f66 (diff)
downloadmtdot-box-evb-factory-firmware-94990163d2b694373eb5b2b8ccc4d002aad4ecd9.tar.gz
mtdot-box-evb-factory-firmware-94990163d2b694373eb5b2b8ccc4d002aad4ecd9.tar.bz2
mtdot-box-evb-factory-firmware-94990163d2b694373eb5b2b8ccc4d002aad4ecd9.zip
create Mode base class for modes - implement join as a mode and update main accordingly
Diffstat (limited to 'LoRaHandler')
-rw-r--r--LoRaHandler/LoRaHandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/LoRaHandler/LoRaHandler.cpp b/LoRaHandler/LoRaHandler.cpp
index 0ecb59e..27eb266 100644
--- a/LoRaHandler/LoRaHandler.cpp
+++ b/LoRaHandler/LoRaHandler.cpp
@@ -25,6 +25,7 @@ void l_worker(void const* argument) {
while (true) {
e = Thread::signal_wait(signal);
if (e.status == osEventSignal) {
+ l->_status = LoRaHandler::busy;
switch (cmd) {
case l_ping:
l->_mutex.lock();
@@ -69,6 +70,7 @@ void l_worker(void const* argument) {
break;
default:
+ l->_status = LoRaHandler::none;
break;
}
}