Skip to content

Commit cb54f50

Browse files
authored
Merge pull request #11859 from kivaisan/fix_cellular_baremetal_scheduling
Cellular: Fix queue scheduling for bare metal
2 parents ee46d03 + deadcee commit cb54f50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

features/cellular/framework/device/CellularStateMachine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "CellularDevice.h"
2020
#include "CellularLog.h"
2121
#include "Thread.h"
22+
#include "mbed_shared_queues.h"
2223

2324
#ifndef MBED_TRACE_MAX_LEVEL
2425
#define MBED_TRACE_MAX_LEVEL TRACE_LEVEL_INFO
@@ -111,6 +112,8 @@ void CellularStateMachine::stop()
111112
delete _queue_thread;
112113
_queue_thread = NULL;
113114
}
115+
#else
116+
_queue.chain(NULL);
114117
#endif
115118

116119
reset();
@@ -655,6 +658,8 @@ nsapi_error_t CellularStateMachine::start_dispatch()
655658
}
656659

657660
_event_id = -1;
661+
#else
662+
_queue.chain(mbed_event_queue());
658663
#endif
659664
return NSAPI_ERROR_OK;
660665
}

0 commit comments

Comments
 (0)