dir seek fixed - dptr was not updated before checking

pull/6363/head
Deepika 2018-03-14 13:58:20 -05:00
parent 5523d53f83
commit 351aaa8acd
1 changed files with 1 additions and 0 deletions

View File

@ -724,6 +724,7 @@ void FATFileSystem::dir_seek(fs_dir_t dir, off_t offset)
FRESULT res;
res = f_readdir(dh, &finfo);
dptr = dh->dptr;
if (res != FR_OK) {
break;
} else if (finfo.fname[0] == 0) {