Browse Source

Don't close diveDir in fileExists (#20035)

vanilla_fb_2.0.x
Sergey1560 4 years ago
committed by GitHub
parent
commit
f924344cc5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/sd/cardreader.cpp

2
Marlin/src/sd/cardreader.cpp

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

Loading…
Cancel
Save