From 829576fdab71891fec8a2655c40d8469721c56e5 Mon Sep 17 00:00:00 2001 From: morris Date: Thu, 2 Jul 2026 10:36:34 +0800 Subject: [PATCH] fix(dac): remove redundant assert in continuous enable Drop the internal assert in dac_continuous_enable() and call dac_priv_enable_channel() directly, since the surrounding state machine already guarantees the preconditions. Co-authored-by: Cursor --- components/esp_driver_dac/dac_continuous.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/esp_driver_dac/dac_continuous.c b/components/esp_driver_dac/dac_continuous.c index be6493e22cd..5f8435f3aaa 100644 --- a/components/esp_driver_dac/dac_continuous.c +++ b/components/esp_driver_dac/dac_continuous.c @@ -411,8 +411,7 @@ esp_err_t dac_continuous_enable(dac_continuous_handle_t handle) #endif DAC_CHANNEL_MASK_FOREACH(chan, handle->cfg.chan_mask) { - esp_err_t res = dac_priv_enable_channel(chan); - assert(res == ESP_OK); + dac_priv_enable_channel(chan); } dac_dma_periph_enable(); esp_intr_enable(handle->intr_handle);