From: michael Date: Tue, 29 Aug 2017 07:31:39 +0000 (+0800) Subject: fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1. X-Git-Tag: v3.1-dev~340^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ec37573492667a7574106dd2f7b7d4486a93f43;p=esp-idf fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1. --- diff --git a/components/driver/i2s.c b/components/driver/i2s.c index f78745f329..6a7ada747c 100644 --- a/components/driver/i2s.c +++ b/components/driver/i2s.c @@ -537,7 +537,7 @@ esp_err_t i2s_set_dac_mode(i2s_dac_mode_t dac_mode) I2S_CHECK((dac_mode < I2S_DAC_CHANNEL_MAX), "i2s dac mode error", ESP_ERR_INVALID_ARG); if(dac_mode == I2S_DAC_CHANNEL_DISABLE) { dac_output_disable(DAC_CHANNEL_1); - dac_output_disable(DAC_CHANNEL_1); + dac_output_disable(DAC_CHANNEL_2); dac_i2s_disable(); } else { dac_i2s_enable();