From e951cebfa24280731be95b81f64dfed5b888beac Mon Sep 17 00:00:00 2001 From: zwx Date: Wed, 6 Dec 2023 19:03:34 +0800 Subject: [PATCH] fix(vfs): add MALLOC_CAP_8BIT for vfs select --- components/vfs/private_include/esp_vfs_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vfs/private_include/esp_vfs_private.h b/components/vfs/private_include/esp_vfs_private.h index 0651dc71f3..4b6e4cf42f 100644 --- a/components/vfs/private_include/esp_vfs_private.h +++ b/components/vfs/private_include/esp_vfs_private.h @@ -13,9 +13,9 @@ extern "C" { #endif #if CONFIG_VFS_SELECT_IN_RAM -#define VFS_MALLOC_FLAGS MALLOC_CAP_INTERNAL +#define VFS_MALLOC_FLAGS (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT) #else -#define VFS_MALLOC_FLAGS MALLOC_CAP_DEFAULT +#define VFS_MALLOC_FLAGS (MALLOC_CAP_DEFAULT) #endif typedef struct vfs_entry_ {