fix(fatfs) add missing cast (#2969)

f_tell requires a FIL type pointer causing compiling to fail.
This commit is contained in:
Konstantinos Papadopoulos
2022-01-06 16:05:44 +02:00
committed by GitHub
parent ddae70f741
commit 343515cd4d

View File

@@ -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);
break;
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;
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;
default:
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)
{
LV_UNUSED(drv);
*pos_p = f_tell(file_p);
*pos_p = f_tell((FIL *)file_p);
return LV_FS_RES_OK;
}