Merge branch 'contrib/github_pr_9095' into 'master'

Update uart_events_example_main.c (GitHub PR)

Closes IDFGH-7532

See merge request espressif/esp-idf!18391
This commit is contained in:
Omar Chebib 2022-09-21 19:51:37 +08:00
commit dd7fde8799

View File

@ -69,7 +69,7 @@ static void uart_event_task(void *pvParameters)
//Event of UART ring buffer full
case UART_BUFFER_FULL:
ESP_LOGI(TAG, "ring buffer full");
// If buffer full happened, you should consider encreasing your buffer size
// If buffer full happened, you should consider increasing your buffer size
// As an example, we directly flush the rx buffer here in order to read more data.
uart_flush_input(EX_UART_NUM);
xQueueReset(uart0_queue);