We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4215e73 commit 3148615Copy full SHA for 3148615
features/cellular/framework/device/CellularStateMachine.cpp
@@ -19,6 +19,7 @@
19
#include "CellularDevice.h"
20
#include "CellularLog.h"
21
#include "Thread.h"
22
+#include "mbed_shared_queues.h"
23
24
#ifndef MBED_TRACE_MAX_LEVEL
25
#define MBED_TRACE_MAX_LEVEL TRACE_LEVEL_INFO
@@ -111,6 +112,8 @@ void CellularStateMachine::stop()
111
112
delete _queue_thread;
113
_queue_thread = NULL;
114
}
115
+#else
116
+ _queue.chain(NULL);
117
#endif
118
119
reset();
@@ -648,6 +651,8 @@ nsapi_error_t CellularStateMachine::start_dispatch()
648
651
649
652
650
653
_event_id = -1;
654
655
+ _queue.chain(mbed_event_queue());
656
657
return NSAPI_ERROR_OK;
658
0 commit comments