From 282d58a6fe93743842d136dfbc1334e9e0639819 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 14 Sep 2023 18:26:57 +0200 Subject: [PATCH] audioreactive: stack size tuning This gives ~3KB extra free heap on -S2. --- usermods/audioreactive/audio_reactive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 8ff26411..f65e61ec 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1408,7 +1408,7 @@ class AudioReactive : public Usermod { xTaskCreateUniversal( // xTaskCreateUniversal also works on -S2 and -C3 with single core FFTcode, // Function to implement the task "FFT", // Name of the task - 5000, // Stack size in words + 3592, // Stack size in words // 3592 leaves 800-1024 bytes of task stack free NULL, // Task input parameter FFTTASK_PRIORITY, // Priority of the task &FFT_Task // Task handle