From 25b86428356ce99072dcc028840493d7a9edc309 Mon Sep 17 00:00:00 2001 From: Alexey Morozov <31707428+alexey-morozov@users.noreply.github.com> Date: Thu, 14 Dec 2017 19:04:12 +0100 Subject: [PATCH] uart driver: Remove unnecessary xSemaphoreGive() avoid unnecessary call of xSemaphoreGive(p_uart_obj[uart_num]->tx_mux); Merges https://github.com/espressif/esp-idf/pull/1387 --- components/driver/uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/driver/uart.c b/components/driver/uart.c index 2b9642f25..d839a062f 100644 --- a/components/driver/uart.c +++ b/components/driver/uart.c @@ -858,7 +858,6 @@ static int uart_tx_all(uart_port_t uart_num, const char* src, size_t size, bool offset += send_size; uart_enable_tx_intr(uart_num, 1, UART_EMPTY_THRESH_DEFAULT); } - xSemaphoreGive(p_uart_obj[uart_num]->tx_mux); } else { while(size) { //semaphore for tx_fifo available