Browse Source

Ender 3 V2 followup

Scott Lahteine 4 years ago
parent
commit
8b96d885e4
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/sd/cardreader.cpp

+ 4
- 2
Marlin/src/sd/cardreader.cpp View File

185
   while (dir.readDir(&p, longFilename) > 0)
185
   while (dir.readDir(&p, longFilename) > 0)
186
     c += is_dir_or_gcode(p);
186
     c += is_dir_or_gcode(p);
187
 
187
 
188
-  #if ENABLED(SDCARD_SORT_ALPHA) && SDSORT_USES_RAM && SDSORT_CACHE_NAMES
188
+  #if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
189
     nrFiles = c;
189
     nrFiles = c;
190
   #endif
190
   #endif
191
 
191
 
430
   endFilePrint();
430
   endFilePrint();
431
   flag.mounted = false;
431
   flag.mounted = false;
432
   flag.workDirIsRoot = true;
432
   flag.workDirIsRoot = true;
433
-  nrFiles = 0;
433
+  #if ALL(SDCARD_SORT_ALPHA, SDSORT_USES_RAM, SDSORT_CACHE_NAMES)
434
+    nrFiles = 0;
435
+  #endif
434
 }
436
 }
435
 
437
 
436
 void CardReader::openAndPrintFile(const char *name) {
438
 void CardReader::openAndPrintFile(const char *name) {

Loading…
Cancel
Save