Skip to content

Commit 6d58db4

Browse files
committed
Compile Errors: IDF
1 parent fc37cb2 commit 6d58db4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/AudioConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ typedef WiFiClient WiFiClientSecure;
289289
# define USE_URL_ARDUINO
290290
# define USE_AUDIO_SERVER
291291
# define USE_TIMER
292+
# define USE_TOUCH_READ
292293
#endif
293294

294295
#define USE_TYPETRAITS
295296
#define USE_STREAM_WRITE_OVERRIDE
296297
#define USE_STREAM_READ_OVERRIDE
297-
#define USE_TOUCH_READ
298298
#define USE_EXT_BUTTON_LOGIC
299299
// support for psram -> set to true
300300
#define USE_ALLOCATOR true

src/AudioTools/AudioLibs/AudioBoardStream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class AudioBoardStream : public I2SCodecStream {
5252
void processActions() {
5353
// TRACED();
5454
actions.processActions();
55-
yield();
55+
delay(1);
5656
}
5757

5858

@@ -201,7 +201,7 @@ class AudioBoardStream : public I2SCodecStream {
201201
self->setSpeakerActive(powerActive);
202202
}
203203
}
204-
yield();
204+
delay(1);
205205
}
206206

207207
/**

src/AudioTools/CoreAudio/AudioActions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AudioActions {
5656
}
5757

5858
virtual bool readValue() {
59-
#ifdef USE_TOUCH_READ
59+
#if defined(USE_TOUCH_READ)
6060
bool result;
6161
if (this->activeLogic == ActiveTouch) {
6262
int value = touchRead(this->pin);
@@ -267,7 +267,7 @@ class AudioActions {
267267
}
268268
}
269269

270-
#if !defined(IS_MIN_DESKTOP)
270+
#if defined(ARDUINO) && !defined(IS_MIN_DESKTOP)
271271
if (use_pin_interrupt) {
272272
attachInterrupt(digitalPinToInterrupt(pin), audioActionsISR, CHANGE);
273273
}

0 commit comments

Comments
 (0)