mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 18:38:17 +00:00
Fixes onReceive deadlock (#6201)
This commit is contained in:
parent
9555ed4b76
commit
39a2080922
@ -106,9 +106,7 @@ static void uart_event_task(void *args)
|
|||||||
switch(event.type) {
|
switch(event.type) {
|
||||||
//Event of UART receving data
|
//Event of UART receving data
|
||||||
case UART_DATA:
|
case UART_DATA:
|
||||||
UART_MUTEX_LOCK();
|
|
||||||
if(uart->onReceive) uart->onReceive();
|
if(uart->onReceive) uart->onReceive();
|
||||||
UART_MUTEX_UNLOCK();
|
|
||||||
break;
|
break;
|
||||||
//Event of HW FIFO overflow detected
|
//Event of HW FIFO overflow detected
|
||||||
case UART_FIFO_OVF:
|
case UART_FIFO_OVF:
|
||||||
|
Loading…
Reference in New Issue
Block a user