summaryrefslogtreecommitdiff
path: root/src/memory
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-26 17:23:34 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-26 17:23:34 +1000
commit8608f9367fc29e498f42f5249aa248dd2044d567 (patch)
treec8564bfe6bbc6c5a9413bbd29b4e52f2cf3bd35c /src/memory
parent4d99d22e10a3cb2a421da1618c127128816613c9 (diff)
downloadtangara-fw-8608f9367fc29e498f42f5249aa248dd2044d567.tar.gz
Tune buffer sizes and locations for I2S
Diffstat (limited to 'src/memory')
-rw-r--r--src/memory/allocator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memory/allocator.cpp b/src/memory/allocator.cpp
index d505ab3e..aaee08f8 100644
--- a/src/memory/allocator.cpp
+++ b/src/memory/allocator.cpp
@@ -13,7 +13,7 @@ void* operator new[](std::size_t sz) {
++sz; // avoid std::malloc(0) which may return nullptr on success
}
- if (sz > 256) {
+ if (sz > 512) {
return heap_caps_malloc(sz, MALLOC_CAP_SPIRAM);
}
@@ -26,4 +26,4 @@ void operator delete[](void* ptr) noexcept {
void operator delete[](void* ptr, std::size_t size) noexcept {
heap_caps_free(ptr);
-} \ No newline at end of file
+}