Skip to content

Commit

Permalink
Increased delay between writting blocks to the SD card.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Dec 31, 2024
1 parent 0972988 commit c2be0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FileMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1581,12 +1581,12 @@ size_t c_FileMgr::WriteSdFileBuf (const FileId& FileHandle, byte* FileData, size
// DEBUG_V(String(" Offset: ") + String(FileList[FileListIndex].buffer.offset));
if(WontFit || WriteRemainder)
{
delay(10);
delay(20);
FeedWDT();
// DEBUG_V("Buffer cant hold this data. Write out the buffer");
size_t bufferWriteSize = FileList[FileListIndex].fsFile.write(FileList[FileListIndex].buffer.DataBuffer, FileList[FileListIndex].buffer.offset);
FileList[FileListIndex].fsFile.flush();
delay(20);
delay(30);
FeedWDT();
if(FileList[FileListIndex].buffer.offset != bufferWriteSize)
{
Expand Down

0 comments on commit c2be0f9

Please sign in to comment.