mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Fix compilation for Audio Core3 ESP32C3 (#20023)
This commit is contained in:
parent
dd9e2a7409
commit
bc8dd8894e
@ -316,10 +316,13 @@ bool TasmotaI2S::beginTx(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
esp_err_t err = ESP_OK;
|
esp_err_t err = ESP_OK;
|
||||||
|
#ifdef SOC_DAC_SUPPORTED
|
||||||
if (isDACMode()) {
|
if (isDACMode()) {
|
||||||
err = dac_continuous_enable((dac_continuous_handle_t) _tx_handle);
|
err = dac_continuous_enable((dac_continuous_handle_t) _tx_handle);
|
||||||
dac_task_start((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);
|
err = i2s_channel_enable(_tx_handle);
|
||||||
}
|
}
|
||||||
AddLog(LOG_LEVEL_INFO, "I2S: Tx i2s_channel_enable err=0x%04X", err);
|
AddLog(LOG_LEVEL_INFO, "I2S: Tx i2s_channel_enable err=0x%04X", err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user