Skip to content

Commit

Permalink
fix(fs): mark the read cache as invalid by default
Browse files Browse the repository at this point in the history
fixes lvgl#3148
  • Loading branch information
kisvegabor committed Mar 12, 2022
1 parent 62d6f3c commit 54f9987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/misc/lv_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mo
file_p->cache = lv_mem_alloc(sizeof(lv_fs_file_cache_t));
LV_ASSERT_MALLOC(file_p->cache);
lv_memset_00(file_p->cache, sizeof(lv_fs_file_cache_t));
file_p->cache->start = UINT32_MAX; /*Set an invalid range by default*/
file_p->cache->end = UINT32_MAX - 1;
}

return LV_FS_RES_OK;
Expand Down

0 comments on commit 54f9987

Please sign in to comment.