Skip to content

Commit 8572af7

Browse files
committed
Add checks to see if selected board uses I2S
1 parent 8f5e387 commit 8572af7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/system/esp32/Esp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @authors Soldered
1717
***************************************************/
18-
18+
#ifdef USES_I2S
1919
#include "Esp.h"
2020
#include "../../boardSelect.h"
2121

@@ -225,4 +225,5 @@ void IRAM_ATTR setI2S1pin(uint32_t _pin, uint32_t _function, uint32_t _inv)
225225
// Set the highest drive strength.
226226
ESP_REG(io_mux[_pin]) = 0;
227227
ESP_REG(io_mux[_pin]) = ((3 << FUN_DRV_S) | (2 << MCU_SEL_S));
228-
}
228+
}
229+
#endif

0 commit comments

Comments
 (0)