Browse Source

Ender 3 V2 followup

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
8b96d885e4
  1. 4
      Marlin/src/sd/cardreader.cpp

4
Marlin/src/sd/cardreader.cpp

@ -185,7 +185,7 @@ int CardReader::countItems(SdFile dir) {
while (dir.readDir(&p, longFilename) > 0)
c += is_dir_or_gcode(p);
#if ENABLED(SDCARD_SORT_ALPHA) && SDSORT_USES_RAM && SDSORT_CACHE_NAMES
#if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
nrFiles = c;
#endif
@ -430,7 +430,9 @@ void CardReader::release() {
endFilePrint();
flag.mounted = false;
flag.workDirIsRoot = true;
#if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
nrFiles = 0;
#endif
}
void CardReader::openAndPrintFile(const char *name) {

Loading…
Cancel
Save