From 343515cd4dc7cc339772540b9a56de5e84e05c80 Mon Sep 17 00:00:00 2001 From: Konstantinos Papadopoulos Date: Thu, 6 Jan 2022 16:05:44 +0200 Subject: [PATCH] fix(fatfs) add missing cast (#2969) f_tell requires a FIL type pointer causing compiling to fail. --- src/extra/libs/fsdrv/lv_fs_fatfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extra/libs/fsdrv/lv_fs_fatfs.c b/src/extra/libs/fsdrv/lv_fs_fatfs.c index 0e79df45b..04996226c 100644 --- a/src/extra/libs/fsdrv/lv_fs_fatfs.c +++ b/src/extra/libs/fsdrv/lv_fs_fatfs.c @@ -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; }