From 5d390c821a7fdddec5eb24a7a3a08bf8bf4be1cc Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 9 Aug 2024 13:11:34 +1000 Subject: Claw back some internal ram - 'main' doesn't need 12k of internal ram - lvgl's draw task doesn't need that much either - also lower the bg worker stack sizes whilst we're here, since they've got tons over headroom --- src/tasks/tasks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tasks') diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index b713d70b..9980c97e 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -64,7 +64,7 @@ auto AllocateStack() -> std::span { // an eye-wateringly large amount of stack. template <> auto AllocateStack() -> std::span { - std::size_t size = 64 * 1024; + std::size_t size = 32 * 1024; return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), size}; } -- cgit v1.2.3