File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -289,12 +289,12 @@ typedef WiFiClient WiFiClientSecure;
289
289
# define USE_URL_ARDUINO
290
290
# define USE_AUDIO_SERVER
291
291
# define USE_TIMER
292
+ # define USE_TOUCH_READ
292
293
#endif
293
294
294
295
#define USE_TYPETRAITS
295
296
#define USE_STREAM_WRITE_OVERRIDE
296
297
#define USE_STREAM_READ_OVERRIDE
297
- #define USE_TOUCH_READ
298
298
#define USE_EXT_BUTTON_LOGIC
299
299
// support for psram -> set to true
300
300
#define USE_ALLOCATOR true
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class AudioBoardStream : public I2SCodecStream {
52
52
void processActions () {
53
53
// TRACED();
54
54
actions.processActions ();
55
- yield ( );
55
+ delay ( 1 );
56
56
}
57
57
58
58
@@ -201,7 +201,7 @@ class AudioBoardStream : public I2SCodecStream {
201
201
self->setSpeakerActive (powerActive);
202
202
}
203
203
}
204
- yield ( );
204
+ delay ( 1 );
205
205
}
206
206
207
207
/* *
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class AudioActions {
56
56
}
57
57
58
58
virtual bool readValue () {
59
- #ifdef USE_TOUCH_READ
59
+ #if defined( USE_TOUCH_READ)
60
60
bool result;
61
61
if (this ->activeLogic == ActiveTouch) {
62
62
int value = touchRead (this ->pin );
@@ -267,7 +267,7 @@ class AudioActions {
267
267
}
268
268
}
269
269
270
- #if !defined(IS_MIN_DESKTOP)
270
+ #if defined(ARDUINO) && !defined(IS_MIN_DESKTOP)
271
271
if (use_pin_interrupt) {
272
272
attachInterrupt (digitalPinToInterrupt (pin), audioActionsISR, CHANGE);
273
273
}
You can’t perform that action at this time.
0 commit comments