diff --git a/extmod/vfs_fat_misc.c b/extmod/vfs_fat_misc.c index 489e535868898ed1b46af78524d572285b09179f..2f06d9f637b7a752b259231b3e6ca6032d1438c8 100644 --- a/extmod/vfs_fat_misc.c +++ b/extmod/vfs_fat_misc.c @@ -54,7 +54,7 @@ mp_obj_t fat_vfs_listdir(const char *path, bool is_str_type) { mp_obj_t fat_vfs_listdir2(fs_user_mount_t *vfs, const char *path, bool is_str_type) { FRESULT res; FILINFO fno; - DIR dir; + FF_DIR dir; #if !MICROPY_FATFS_OO && _USE_LFN fno.lfname = lfn; fno.lfsize = sizeof lfn;