Skip to content

Commit 31e1ec0

Browse files
committed
copy example
1 parent 273e9b2 commit 31e1ec0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/examples-stream/streams-url-file/streams-url-file.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ void setup(void) {
4444

4545
// copy file
4646
file = SD.open("/audio-8000.raw", FILE_WRITE);
47+
file.seek(0); // overwirte from beginning
4748
copier.begin(file, url);
48-
copier.copyAll(retryCount);
49+
copier.copyAll();
4950
file.close();
5051

5152
file = SD.open("/audio-8000.raw");

0 commit comments

Comments
 (0)