Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Fix incorrect failure check in pcfs_open
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Aug 19, 2019
1 parent 2ec3991 commit 2b3c400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lv_tutorial/6_images/lv_tutorial_images.c
Expand Up @@ -226,7 +226,7 @@ static lv_fs_res_t pcfs_open(lv_fs_drv_t * drv, void * file_p, const char * fn,
sprintf(buf, "./%s", fn);

pc_file_t f = fopen(buf, flags);
if((long int)f <= 0) return LV_FS_RES_UNKNOWN;
if(f == NULL) return LV_FS_RES_UNKNOWN;
else {
fseek(f, 0, SEEK_SET);

Expand Down

0 comments on commit 2b3c400

Please sign in to comment.