]> granicus.if.org Git - esp-idf/commitdiff
uart driver: Remove unnecessary xSemaphoreGive()
authorAlexey Morozov <31707428+alexey-morozov@users.noreply.github.com>
Thu, 14 Dec 2017 18:04:12 +0000 (19:04 +0100)
committerAngus Gratton <gus@projectgus.com>
Wed, 3 Jan 2018 02:44:19 +0000 (13:44 +1100)
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

index 2b9642f259aa12995c0d0759ded3da7f86d02ae7..d839a062fcbef4c1246a6aafa0056948b1001cb0 100644 (file)
@@ -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