From 0ba5d3e615a6bf852ba2692cebc4479cf382e1ea Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Sat, 28 Dec 2024 03:04:18 +0100 Subject: [PATCH] IDF as component --- src/AudioConfig.h | 1 - src/AudioTools/CoreAudio/AudioRuntime.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AudioConfig.h b/src/AudioConfig.h index 9c6e6c6b1..6ff8b411d 100644 --- a/src/AudioConfig.h +++ b/src/AudioConfig.h @@ -46,7 +46,6 @@ typedef WiFiClient WiFiClientSecure; // E.g when using the Espressif IDF. Use cmake for the necesseary defines #elif defined(ESP32_CMAKE) # define ESP32 -# include "AudioTools/CoreAudio/AudioRuntime.h" # include "AudioTools/AudioLibs/Desktop/NoArduino.h" #else # include "AudioTools/AudioLibs/Desktop/NoArduino.h" diff --git a/src/AudioTools/CoreAudio/AudioRuntime.h b/src/AudioTools/CoreAudio/AudioRuntime.h index 671e007fd..bf28039dd 100644 --- a/src/AudioTools/CoreAudio/AudioRuntime.h +++ b/src/AudioTools/CoreAudio/AudioRuntime.h @@ -3,7 +3,7 @@ #include "AudioConfig.h" -#if defined(ESP32_CMAKE) +#if defined(ESP32_CMAKE) && !defined(ARDUINO) #include "freertos/FreeRTOS.h" #include "freertos/task.h" // delay and millis is needed by this framework