diff options
Diffstat (limited to 'src/memory')
| -rw-r--r-- | src/memory/allocator.cpp | 4 |
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 +} |
