未验证 提交 39a20809 编写于 作者: R Rodrigo Garcia 提交者: GitHub

Fixes onReceive deadlock (#6201)

上级 9555ed4b
......@@ -106,9 +106,7 @@ static void uart_event_task(void *args)
switch(event.type) {
//Event of UART receving data
case UART_DATA:
UART_MUTEX_LOCK();
if(uart->onReceive) uart->onReceive();
UART_MUTEX_UNLOCK();
break;
//Event of HW FIFO overflow detected
case UART_FIFO_OVF:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册