From b118e5624531d85e071ff8a55c15f53e1192118d Mon Sep 17 00:00:00 2001 From: fvanroie Date: Fri, 24 May 2024 22:06:17 +0200 Subject: [PATCH] Fix for lv_fs_if_pc_init --- lib/lv_fs_if/lv_fs_pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lv_fs_if/lv_fs_pc.c b/lib/lv_fs_if/lv_fs_pc.c index b83e1ac30..cca7afbd7 100644 --- a/lib/lv_fs_if/lv_fs_pc.c +++ b/lib/lv_fs_if/lv_fs_pc.c @@ -78,7 +78,7 @@ void lv_fs_if_pc_init(char letter, const char* path) /*Set up fields...*/ fs_drv.file_size = sizeof(file_t); - fs_drv.letter = LV_FS_IF_PC; + fs_drv.letter = letter; fs_drv.open_cb = fs_open; fs_drv.close_cb = fs_close; fs_drv.read_cb = fs_read; @@ -96,7 +96,7 @@ void lv_fs_if_pc_init(char letter, const char* path) fs_drv.dir_open_cb = fs_dir_open; fs_drv.dir_read_cb = fs_dir_read; - fs_drv.user_data = LV_FS_PC_PATH; + fs_drv.user_data = path; lv_fs_drv_register(&fs_drv);