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.
2 parents ee46d03 + deadcee commit cb54f50Copy full SHA for cb54f50
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();
@@ -655,6 +658,8 @@ nsapi_error_t CellularStateMachine::start_dispatch()
655
658
656
659
657
660
_event_id = -1;
661
662
+ _queue.chain(mbed_event_queue());
663
664
return NSAPI_ERROR_OK;
665
0 commit comments