1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 18:12:46 +01:00

vfs: fix FATFS_VFS_FILE_BUFFER_SIZE for increased VFS_NAME_MAX

This commit is contained in:
Fabian Hüßler 2023-12-31 17:45:15 +01:00
parent 2d459157f1
commit 278dec22b1

View File

@ -141,11 +141,11 @@ extern "C" {
# if (__SIZEOF_POINTER__ == 8) # if (__SIZEOF_POINTER__ == 8)
# define FATFS_VFS_DIR_BUFFER_SIZE (64 + _FATFS_DIR_LFN + _FATFS_DIR_EXFAT) # 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) _FATFS_FILE_SEEK_PTR + _FATFS_FILE_EXFAT)
# else # else
# define FATFS_VFS_DIR_BUFFER_SIZE (44 + _FATFS_DIR_LFN + _FATFS_DIR_EXFAT) # 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) _FATFS_FILE_SEEK_PTR + _FATFS_FILE_EXFAT)
# endif # endif
#else #else