Fix PDM compiles for older SOCs (#786)
Espressif changes the contents of the PDM struct depending on the chip model. Use a hopefully valid `#define` to avoid setting a member that's not there in some cases. Fixes #785
This commit is contained in:
1 parent
7ea583ff37
commit
25c6165b3d
1 file changed
+2
@@ -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,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user