Skip to content

Commit 1dcccdc

Browse files
committed
docs: Increase buffer size in CopyFile function for vastly improved file copy efficiency
1 parent 0f72812 commit 1dcccdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Teensy/FileTransfer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ FLASHMEM bool CopyFile(const char* sourcePath, const char* destinationPath, FS&
424424
}
425425
while (sourceFile.available())
426426
{
427-
uint8_t buf[64];
427+
uint8_t buf[4096];
428428
size_t len = sourceFile.read(buf, sizeof(buf));
429429
destinationFile.write(buf, len);
430430
}

0 commit comments

Comments
 (0)