From bc8dd8894e7ebafe6ca7b4ae9ca502a24fdb0f14 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:20:26 +0100 Subject: [PATCH] Fix compilation for Audio Core3 ESP32C3 (#20023) --- tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino b/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino index 3b6987986..2207be6e3 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_42_0_i2s_3_lib_idf51.ino @@ -316,10 +316,13 @@ bool TasmotaI2S::beginTx(void) { } esp_err_t err = ESP_OK; +#ifdef SOC_DAC_SUPPORTED if (isDACMode()) { err = dac_continuous_enable((dac_continuous_handle_t) _tx_handle); dac_task_start((dac_continuous_handle_t) _tx_handle); - } else { + } else +#endif // SOC_DAC_SUPPORTED + { err = i2s_channel_enable(_tx_handle); } AddLog(LOG_LEVEL_INFO, "I2S: Tx i2s_channel_enable err=0x%04X", err);