From 49f2e26ab54d995516b0dab2d2b5d20572b3c74c Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 27 May 2023 00:00:08 +0200 Subject: [PATCH] arduinoFFT hash update to fix the gh build, following latest dev. --- platformio.ini | 2 +- usermods/audioreactive/audio_reactive.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 20fefa90..07e731fb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -827,7 +827,7 @@ build_flags_S = ; -D WLED_ENABLE_DMX lib_deps_S = - https://github.com/kosme/arduinoFFT#develop @ 1.9.2+sha.e5e4c74 ; used for USERMOD_AUDIOREACTIVE - using "known working" hash + https://github.com/kosme/arduinoFFT#develop @ 1.9.2+sha.419d7b0 ; used for USERMOD_AUDIOREACTIVE - using "known working" hash build_flags_M = -D WLED_MAX_USERMODS=25 ; default only 4-6, also for _XL configs takes 25 pointers in memory diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 792f0a0a..63e08911 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -298,6 +298,7 @@ static float windowWeighingFactors[samplesFFT] = {0.0f}; //#define FFT_SQRT_APPROXIMATION // enables "quake3" style inverse sqrt - WLEDMM slower on ESP32 #endif #define sqrt(x) sqrtf(x) // little hack that reduces FFT time by 10-50% on ESP32 (as alternative to FFT_SQRT_APPROXIMATION) +#define sqrt_internal sqrtf // see https://github.com/kosme/arduinoFFT/pull/83 #else // around 50% slower on -S2 // lib_deps += https://github.com/blazoncek/arduinoFFT.git