audioreactive: stack size tuning

This gives ~3KB extra free heap on -S2.
This commit is contained in:
Frank 2023-09-14 18:26:57 +02:00 committed by GitHub
parent fc4ed1c50b
commit 282d58a6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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