Browse Source

Don't close diveDir in fileExists (#20035)

vanilla_fb_2.0.x
Sergey1560 4 years ago
committed by Scott Lahteine
parent
commit
1767a3bd70
  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