From 74091c42f7cf4e85e46e706692accb65879741e2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 29 Jan 2022 13:45:30 +0100 Subject: [PATCH] chore: fix typos in FATFS config fixes https://github.com/lvgl/lvgl/pull/2979#discussion_r794612134 --- lv_conf_template.h | 8 ++++---- src/extra/libs/fsdrv/lv_fs_fatfs.c | 2 +- src/lv_conf_internal.h | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lv_conf_template.h b/lv_conf_template.h index 0b2a36a82..829243f9b 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -573,7 +573,7 @@ #define LV_USE_FS_STDIO 0 #if LV_USE_FS_STDIO #define LV_FS_STDIO_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ - #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths ill be appended to it.*/ + #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ #endif @@ -581,7 +581,7 @@ #define LV_USE_FS_POSIX 0 #if LV_USE_FS_POSIX #define LV_FS_POSIX_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ - #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths ill be appended to it.*/ + #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #define LV_FS_POSIX_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ #endif @@ -589,7 +589,7 @@ #define LV_USE_FS_WIN32 0 #if LV_USE_FS_WIN32 #define LV_FS_WIN32_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ - #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory path ill be appended to it.*/ + #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #define LV_FS_WIN32_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ #endif @@ -597,7 +597,7 @@ #define LV_USE_FS_FATFS 0 #if LV_USE_FS_FATFS #define LV_FS_FATFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ - #define LV_FS_FATSF_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ + #define LV_FS_FATFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ #endif /*PNG decoder library*/ diff --git a/src/extra/libs/fsdrv/lv_fs_fatfs.c b/src/extra/libs/fsdrv/lv_fs_fatfs.c index 5f2d868de..73596ece7 100644 --- a/src/extra/libs/fsdrv/lv_fs_fatfs.c +++ b/src/extra/libs/fsdrv/lv_fs_fatfs.c @@ -67,7 +67,7 @@ void lv_fs_fatfs_init(void) /*Set up fields...*/ fs_drv.letter = LV_FS_FATFS_LETTER; - fs_drv.cache_size = LV_FS_FSTFS_CACHE_SIZE; + fs_drv.cache_size = LV_FS_FATFS_CACHE_SIZE; fs_drv.open_cb = fs_open; fs_drv.close_cb = fs_close; diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index a438c370a..9349f2e86 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -1854,7 +1854,7 @@ #ifdef CONFIG_LV_FS_STDIO_PATH #define LV_FS_STDIO_PATH CONFIG_LV_FS_STDIO_PATH #else - #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths ill be appended to it.*/ + #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #endif #endif #ifndef LV_FS_STDIO_CACHE_SIZE @@ -1886,7 +1886,7 @@ #ifdef CONFIG_LV_FS_POSIX_PATH #define LV_FS_POSIX_PATH CONFIG_LV_FS_POSIX_PATH #else - #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths ill be appended to it.*/ + #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #endif #endif #ifndef LV_FS_POSIX_CACHE_SIZE @@ -1918,7 +1918,7 @@ #ifdef CONFIG_LV_FS_WIN32_PATH #define LV_FS_WIN32_PATH CONFIG_LV_FS_WIN32_PATH #else - #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory path ill be appended to it.*/ + #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ #endif #endif #ifndef LV_FS_WIN32_CACHE_SIZE @@ -1946,11 +1946,11 @@ #define LV_FS_FATFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ #endif #endif - #ifndef LV_FS_FATSF_CACHE_SIZE - #ifdef CONFIG_LV_FS_FATSF_CACHE_SIZE - #define LV_FS_FATSF_CACHE_SIZE CONFIG_LV_FS_FATSF_CACHE_SIZE + #ifndef LV_FS_FATFS_CACHE_SIZE + #ifdef CONFIG_LV_FS_FATFS_CACHE_SIZE + #define LV_FS_FATFS_CACHE_SIZE CONFIG_LV_FS_FATFS_CACHE_SIZE #else - #define LV_FS_FATSF_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ + #define LV_FS_FATFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ #endif #endif #endif