From 278dec22b1fa7781be8a5e5907813e3f3cc8d1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=BC=C3=9Fler?= Date: Sun, 31 Dec 2023 17:45:15 +0100 Subject: [PATCH] vfs: fix FATFS_VFS_FILE_BUFFER_SIZE for increased VFS_NAME_MAX --- sys/include/vfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/vfs.h b/sys/include/vfs.h index 519318749c..3b9ca7eff1 100644 --- a/sys/include/vfs.h +++ b/sys/include/vfs.h @@ -141,11 +141,11 @@ extern "C" { # if (__SIZEOF_POINTER__ == 8) # define FATFS_VFS_DIR_BUFFER_SIZE (64 + _FATFS_DIR_LFN + _FATFS_DIR_EXFAT) -# define FATFS_VFS_FILE_BUFFER_SIZE (57 + VFS_NAME_MAX + _FATFS_FILE_CACHE + \ +# define FATFS_VFS_FILE_BUFFER_SIZE (64 + VFS_NAME_MAX + _FATFS_FILE_CACHE + \ _FATFS_FILE_SEEK_PTR + _FATFS_FILE_EXFAT) # else # define FATFS_VFS_DIR_BUFFER_SIZE (44 + _FATFS_DIR_LFN + _FATFS_DIR_EXFAT) -# define FATFS_VFS_FILE_BUFFER_SIZE (41 + VFS_NAME_MAX + _FATFS_FILE_CACHE + \ +# define FATFS_VFS_FILE_BUFFER_SIZE (44 + VFS_NAME_MAX + _FATFS_FILE_CACHE + \ _FATFS_FILE_SEEK_PTR + _FATFS_FILE_EXFAT) # endif #else