We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 619fe19 + 0df9a9c commit d4ed450Copy full SHA for d4ed450
docs/api.md
@@ -833,6 +833,13 @@ void setup() {
833
SD.begin(10);
834
root = SD.open("/");
835
printDirectory(root, 0);
836
+ Serial.println();
837
+
838
+ Serial.println("PRINT AGAIN");
839
+ Serial.println("-----------");
840
+ root.rewindDirectory(); // Return to the first file in the directory
841
+ printDirectory(root, 0);
842
843
Serial.println("Done!");
844
}
845
@@ -845,8 +852,6 @@ void printDirectory(File dir, int numTabs) {
852
File entry = dir.openNextFile();
846
853
if (!entry) {
847
854
// No more files
848
- // Return to the first file in the directory
849
- dir.rewindDirectory();
850
855
break;
851
856
857
0 commit comments