From 7a417713829cc5d1690bef2dbe3490346a15b818 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Wed, 26 Jul 2023 02:31:24 +0100 Subject: [PATCH] Attempt at creating audio sync listen EPS8266 --- usermods/audioreactive/audio_reactive.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 25911fb2..247630d4 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -819,6 +819,8 @@ static void detectSamplePeak(void) { } } +#endif + static void autoResetPeak(void) { uint16_t MinShowDelay = MAX(50, strip.getMinShowDelay()); // Fixes private class variable compiler error. Unsure if this is the correct way of fixing the root problem. -THATDONFC if (millis() - timeOfPeak > MinShowDelay) { // Auto-reset of samplePeak after a complete frame has passed. @@ -827,7 +829,6 @@ static void autoResetPeak(void) { } } -#endif //////////////////// // usermod class // ////////////////////