mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 12:30:59 +02:00
Fixes onReceive deadlock (#6201)
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user