Allow FFS cache to not be defined.

This commit is contained in:
iabdalkader 2021-03-08 22:20:54 +02:00
parent 8bc62b1034
commit 8a99ad7616
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ SECTIONS
_vfs_buf = .; // VFS sturct + FATFS file buffer (around 624 bytes)
. = . + OMV_VFS_BUF_SIZE;
#if !defined(OMV_FFS_MEMORY)
#if !defined(OMV_FFS_MEMORY) && defined(OMV_FFS_BUF_SIZE)
. = ALIGN(16);
_ffs_cache = .; // Flash filesystem cache
. = . + OMV_FFS_BUF_SIZE;

View File

@ -126,7 +126,7 @@ SECTIONS
_vfs_buf = .; // VFS sturct + FATFS file buffer (around 624 bytes)
. = . + OMV_VFS_BUF_SIZE;
#if !defined(OMV_FFS_MEMORY)
#if !defined(OMV_FFS_MEMORY) && defined(OMV_FFS_BUF_SIZE)
. = ALIGN(16);
_ffs_cache = .; // Flash filesystem cache
. = . + OMV_FFS_BUF_SIZE;