Skip to content

Commit 39a2080

Browse files
authored
Fixes onReceive deadlock (#6201)
1 parent 9555ed4 commit 39a2080

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

-2
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ static void uart_event_task(void *args)
106106
switch(event.type) {
107107
//Event of UART receving data
108108
case UART_DATA:
109-
UART_MUTEX_LOCK();
110109
if(uart->onReceive) uart->onReceive();
111-
UART_MUTEX_UNLOCK();
112110
break;
113111
//Event of HW FIFO overflow detected
114112
case UART_FIFO_OVF:

0 commit comments

Comments
 (0)