Skip to content

Commit

Permalink
Fixes onReceive deadlock (#6201)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Jan 31, 2022
1 parent 9555ed4 commit 39a2080
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cores/esp32/esp32-hal-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 39a2080

Please sign in to comment.