Skip to content

Commit

Permalink
Fix for lv_fs_if_pc_init
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed May 24, 2024
1 parent f175dc5 commit b118e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lv_fs_if/lv_fs_pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit b118e56

Please sign in to comment.