Browse Source

Don't close diveDir in fileExists (#20035)

Sergey1560 4 years ago
parent
commit
f924344cc5
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/sd/cardreader.cpp

+ 1
- 1
Marlin/src/sd/cardreader.cpp View File

@@ -637,7 +637,7 @@ bool CardReader::fileExists(const char * const path) {
637 637
   if (fname) {
638 638
     diveDir->rewind();
639 639
     selectByName(*diveDir, fname);
640
-    diveDir->close();
640
+    //diveDir->close();
641 641
   }
642 642
   return !!fname;
643 643
 }

Loading…
Cancel
Save