diff --git a/src/AudioOutputPDM.cpp b/src/AudioOutputPDM.cpp index feea567..4dd8b33 100644 --- a/src/AudioOutputPDM.cpp +++ b/src/AudioOutputPDM.cpp @@ -66,7 +66,9 @@ bool AudioOutputPDM::begin() { .gpio_cfg = { .clk = I2S_GPIO_UNUSED, .dout = (gpio_num_t)pdmPin, +#if SOC_I2S_PDM_MAX_TX_LINES > 1 .dout2 = I2S_GPIO_UNUSED, +#endif .invert_flags = { .clk_inv = false, },