mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1.
This commit is contained in:
parent
84dec4459b
commit
9ec3757349
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user