We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d2ee2b commit 4257ef9Copy full SHA for 4257ef9
src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h
@@ -351,12 +351,12 @@ class I2SDriverESP32V1 {
351
352
protected:
353
i2s_pdm_tx_slot_config_t getTxSlotConfig(I2SConfigESP32V1 &cfg) {
354
-#ifdef ARDUINO
355
- return I2S_PDM_TX_SLOT_DEFAULT_CONFIG(
+#ifdef SOC_I2S_HW_VERSION_2
+ return I2S_PDM_TX_SLOT_DAC_DEFAULT_CONFIG(
356
(i2s_data_bit_width_t)cfg.bits_per_sample,
357
(i2s_slot_mode_t)cfg.channels);
358
#else
359
- return I2S_PDM_TX_SLOT_DAC_DEFAULT_CONFIG(
+ return I2S_PDM_TX_SLOT_DEFAULT_CONFIG(
360
361
362
#endif
0 commit comments