fix(bt): fixed semaphore deletion condition in UART DMA deinit

This commit is contained in:
Jin Cheng
2025-12-22 17:37:28 +08:00
committed by BOT
parent bdec9fe83a
commit f694fc15ce
@@ -581,7 +581,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));
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);
}