Skip to content

Commit 4a1409b

Browse files
committed
IDF Compile Errors
1 parent 3cb9482 commit 4a1409b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/AudioTools/AudioLibs/Desktop/NoArduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ inline long map(long x, long in_min, long in_max, long out_min, long out_max) {
193193

194194
#if defined(ESP32)
195195
#include "driver/gpio.h"
196+
#include "freertos/FreeRTOS.h" // needed for ESP Arduino < 2.0
197+
#include "freertos/FreeRTOSConfig.h"
196198

197199
/// e.g. for AudioActions
198200
extern "C" int digitalRead(int pin) {

src/AudioToolsConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef WiFiClient WiFiClientSecure;
4646
// E.g when using the Espressif IDF. Use cmake for the necesseary defines
4747
#elif defined(ESP32_CMAKE)
4848
# define ESP32
49+
# include "esp_idf_version.h"
4950
# include "AudioTools/AudioLibs/Desktop/NoArduino.h"
5051
#else
5152
# include "AudioTools/AudioLibs/Desktop/NoArduino.h"

0 commit comments

Comments
 (0)