Unverified Commit 39a20809 authored by Rodrigo Garcia's avatar Rodrigo Garcia Committed by GitHub

Fixes onReceive deadlock (#6201)

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment