diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-25 22:34:15 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-25 22:34:30 +1000 |
| commit | 5a20b0bc1a0583352d9e87a3bb39f55a92735986 (patch) | |
| tree | 94f17a1ba3b1186da0574240427f2933ae0ddc75 | |
| parent | dd13a234d20882e25347e4e4c6b0b82e4748294d (diff) | |
| download | tangara-fw-5a20b0bc1a0583352d9e87a3bb39f55a92735986.tar.gz | |
Move UI task back to internal stack
It really is *so* fast
| -rw-r--r-- | src/tasks/tasks.cpp | 6 |
1 files 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<Type::kAudioDecoder>() -> cpp::span<StackType_t> { // PSRAM so we give it a bit of headroom for safety. template <> auto AllocateStack<Type::kUi>() -> cpp::span<StackType_t> { - constexpr std::size_t size = 24 * 1024; - return {static_cast<StackType_t*>(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 |
