From: Alexey Morozov <31707428+alexey-morozov@users.noreply.github.com> Date: Thu, 14 Dec 2017 18:04:12 +0000 (+0100) Subject: uart driver: Remove unnecessary xSemaphoreGive() X-Git-Tag: v3.1-beta1~500^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25b86428356ce99072dcc028840493d7a9edc309;p=esp-idf 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 --- diff --git a/components/driver/uart.c b/components/driver/uart.c index 2b9642f259..d839a062fc 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