Skip to content

Commit 1b13443

Browse files
committed
AudioConfig.h
1 parent ea5ff0f commit 1b13443

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/AudioConfig.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,13 @@ typedef uint32_t eps32_i2s_sample_rate_type;
341341
//-------ESP32C3, ESP32S3, ESP32S2---------
342342

343343
#if defined(ESP32) && defined(ESP32X)
344-
#include "esp32-hal-log.h"
345-
#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
344+
# ifdef ARDUINO
345+
# include "esp32-hal-log.h"
346+
# endif
347+
# if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
346348
# define USE_INT24_FROM_INT
347349
# define USE_ANALOG
348-
#endif
349-
350+
# endif
350351

351352
#define USE_PWM
352353
#define USE_URL_ARDUINO

0 commit comments

Comments
 (0)