mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user