feat(openthread): use heap_caps_calloc_prefer for messagepool

This commit is contained in:
Tan Yan Quan
2026-02-12 15:09:01 +08:00
parent 9018519447
commit 0509be4182
5 changed files with 29 additions and 15 deletions

View File

@@ -227,6 +227,6 @@ uint32_t esp_openthread_get_alloc_caps(void)
#if CONFIG_OPENTHREAD_PLATFORM_MALLOC_CAP_SPIRAM
(MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
#else
(MALLOC_CAP_DEFAULT | MALLOC_CAP_8BIT);
(MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
#endif
}