fix(fatfs) add missing cast (#2969)
f_tell requires a FIL type pointer causing compiling to fail.
This commit is contained in:
committed by
GitHub
parent
ddae70f741
commit
343515cd4d
@@ -184,10 +184,10 @@ static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs
|
|||||||
f_lseek(file_p, pos);
|
f_lseek(file_p, pos);
|
||||||
break;
|
break;
|
||||||
case LV_FS_SEEK_CUR:
|
case LV_FS_SEEK_CUR:
|
||||||
f_lseek(file_p, f_tell(file_p) + pos);
|
f_lseek(file_p, f_tell((FIL *)file_p) + pos);
|
||||||
break;
|
break;
|
||||||
case LV_FS_SEEK_END:
|
case LV_FS_SEEK_END:
|
||||||
f_lseek(file_p, f_size(file_p) + pos);
|
f_lseek(file_p, f_size((FIL *)file_p) + pos);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -206,7 +206,7 @@ static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs
|
|||||||
static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p)
|
static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p)
|
||||||
{
|
{
|
||||||
LV_UNUSED(drv);
|
LV_UNUSED(drv);
|
||||||
*pos_p = f_tell(file_p);
|
*pos_p = f_tell((FIL *)file_p);
|
||||||
return LV_FS_RES_OK;
|
return LV_FS_RES_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user