We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04ae1f commit 0faf9abCopy full SHA for 0faf9ab
src/serial/SerialDispatcher.cpp
@@ -153,13 +153,15 @@ void SerialDispatcher::block()
153
{
154
mbed::ScopedLock<rtos::Mutex> lock(_mutex);
155
auto iter = findThreadCustomerDataById(rtos::ThisThread::get_id());
156
+ if (iter == std::end(_thread_customer_list)) return;
157
iter->block_tx_buffer = true;
158
}
159
160
void SerialDispatcher::unblock()
161
162
163
164
165
iter->block_tx_buffer = false;
166
_cond.notify_one();
167
0 commit comments