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 <cursoragent@cursor.com>
This commit is contained in:
morris
2026-07-02 10:36:34 +08:00
co-authored by Cursor
parent 0daee142a3
commit 829576fdab
+1 -2
View File
@@ -411,8 +411,7 @@ esp_err_t dac_continuous_enable(dac_continuous_handle_t handle)
#endif #endif
DAC_CHANNEL_MASK_FOREACH(chan, handle->cfg.chan_mask) { DAC_CHANNEL_MASK_FOREACH(chan, handle->cfg.chan_mask) {
esp_err_t res = dac_priv_enable_channel(chan); dac_priv_enable_channel(chan);
assert(res == ESP_OK);
} }
dac_dma_periph_enable(); dac_dma_periph_enable();
esp_intr_enable(handle->intr_handle); esp_intr_enable(handle->intr_handle);