From 5a20b0bc1a0583352d9e87a3bb39f55a92735986 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 25 Sep 2023 22:34:15 +1000 Subject: [PATCH] Move UI task back to internal stack It really is *so* fast --- src/tasks/tasks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index 002d6e56..8dc2f204 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -57,9 +57,9 @@ auto AllocateStack() -> cpp::span { // PSRAM so we give it a bit of headroom for safety. template <> auto AllocateStack() -> cpp::span { - constexpr std::size_t size = 24 * 1024; - return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), - size}; + constexpr std::size_t size = 16 * 1024; + static StackType_t sStack[size]; + return {sStack, size}; } template <> // PCM conversion and resampling uses a very small amount of stack. It works