diff --git a/src/AudioI2S/I2SESP32.h b/src/AudioI2S/I2SESP32.h index 3647f1a654..2b1d9f268f 100644 --- a/src/AudioI2S/I2SESP32.h +++ b/src/AudioI2S/I2SESP32.h @@ -1,7 +1,7 @@ #pragma once #include "AudioConfig.h" -#if defined(ESP32) && defined(USE_I2S) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0 , 0) +#if defined(ESP32) && defined(USE_I2S) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0 , 0) || defined(DOXYGEN) #include "AudioI2S/I2SConfig.h" #include "driver/i2s.h" diff --git a/src/AudioI2S/I2SESP32V1.h b/src/AudioI2S/I2SESP32V1.h index 9e4f17754d..2f6c5e4e66 100644 --- a/src/AudioI2S/I2SESP32V1.h +++ b/src/AudioI2S/I2SESP32V1.h @@ -1,7 +1,7 @@ #pragma once #include "AudioConfig.h" -#if defined(ESP32) && defined(USE_I2S) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) +#if defined(ESP32) && defined(USE_I2S) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) || defined(DOXYGEN) #include "AudioI2S/I2SConfig.h" #include "driver/i2s_pdm.h"