mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(bt): fixed semaphore deletion condition in UART DMA deinit
This commit is contained in:
@@ -590,7 +590,7 @@ hci_driver_uart_dma_deinit(void)
|
|||||||
|
|
||||||
ESP_ERROR_CHECK(uart_driver_delete(s_hci_driver_uart_dma_env.hci_uart_params->hci_uart_port));
|
ESP_ERROR_CHECK(uart_driver_delete(s_hci_driver_uart_dma_env.hci_uart_params->hci_uart_port));
|
||||||
hci_driver_uart_dma_memory_deinit();
|
hci_driver_uart_dma_memory_deinit();
|
||||||
if (!s_hci_driver_uart_dma_env.process_sem) {
|
if (s_hci_driver_uart_dma_env.process_sem) {
|
||||||
vSemaphoreDelete(s_hci_driver_uart_dma_env.process_sem);
|
vSemaphoreDelete(s_hci_driver_uart_dma_env.process_sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user