Skip to content

Commit 61cc60f

Browse files
committed
ESP32 I2S_CLK_SRC_EXTERNAL
1 parent dbb84d3 commit 61cc60f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,14 @@ class I2SDriverESP32V1 {
277277
}
278278
}
279279

280-
#if SOC_I2S_HW_VERSION_2
281280
if (cfg.pin_mck != -1 && !cfg.is_master){
281+
#if SOC_I2S_HW_VERSION_2
282282
LOGI("clk_src=I2S_CLK_SRC_EXTERNAL");
283283
clk_cfg.clk_src = I2S_CLK_SRC_EXTERNAL;
284-
}
284+
#else
285+
LOGE("clk_src=I2S_CLK_SRC_EXTERNAL not supported");
285286
#endif
287+
}
286288
return clk_cfg;
287289
}
288290

0 commit comments

Comments
 (0)