Skip to content

Commit 351aaa8

Browse files
author
Deepika
committed
dir seek fixed - dptr was not updated before checking
1 parent 5523d53 commit 351aaa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/filesystem/fat/FATFileSystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ void FATFileSystem::dir_seek(fs_dir_t dir, off_t offset)
724724
FRESULT res;
725725

726726
res = f_readdir(dh, &finfo);
727+
dptr = dh->dptr;
727728
if (res != FR_OK) {
728729
break;
729730
} else if (finfo.fname[0] == 0) {

0 commit comments

Comments
 (0)