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
This commit is contained in:
parent
c401a74bfb
commit
25b8642835
|
@ -858,7 +858,6 @@ static int uart_tx_all(uart_port_t uart_num, const char* src, size_t size, bool
|
||||||
offset += send_size;
|
offset += send_size;
|
||||||
uart_enable_tx_intr(uart_num, 1, UART_EMPTY_THRESH_DEFAULT);
|
uart_enable_tx_intr(uart_num, 1, UART_EMPTY_THRESH_DEFAULT);
|
||||||
}
|
}
|
||||||
xSemaphoreGive(p_uart_obj[uart_num]->tx_mux);
|
|
||||||
} else {
|
} else {
|
||||||
while(size) {
|
while(size) {
|
||||||
//semaphore for tx_fifo available
|
//semaphore for tx_fifo available
|
||||||
|
|
Loading…
Reference in a new issue