fix(simu): reset error bits on stream after incomplete read (#6566)

This commit is contained in:
Raphael Coeffic
2025-09-02 09:52:20 +10:00
committed by GitHub
parent 7230b26dc3
commit ac0acbec97
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -318,6 +318,7 @@ FRESULT f_read(FIL* fil, void* data, UINT size, UINT* read)
sf->stream->read(static_cast<char*>(data), size);
*read = static_cast<UINT>(sf->stream->gcount());
fil->fptr += *read;
sf->stream->clear();
}
}
return FR_OK;