From d6b83fcf4a1a3039c06e0b1d1a1f7e2af2351efb Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 15 Aug 2023 13:53:30 +1000 Subject: Flesh out basic bluetooth support No ui yet, and performance isn't great. It kinda works though!! --- src/tasks/tasks.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/tasks/tasks.cpp') diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index ce5f17dc..493d6ba9 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -62,7 +62,7 @@ auto AllocateStack() -> cpp::span { template <> auto AllocateStack() -> cpp::span { std::size_t size = 32 * 1024; - return {static_cast(heap_caps_malloc(size, MALLOC_CAP_DEFAULT)), + return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), size}; } // UI flushes *must* be done from internal RAM. Thankfully, there is very little @@ -84,8 +84,7 @@ auto AllocateStack() -> cpp::span { template <> auto AllocateStack() -> cpp::span { std::size_t size = 4 * 1024; - return {static_cast( - heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)), + return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), size}; } -- cgit v1.2.3