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;
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
Original file line number Diff line number Diff 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 /* *
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments