Browse Source

🐛 Followup to M20 L

- Fix `printListing` after #22271
Scott Lahteine 4 years ago
parent
commit
504c569f9c
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

302
               pathLong[lenPrependLong - 1] = '/';
302
               pathLong[lenPrependLong - 1] = '/';
303
             }
303
             }
304
             strcpy(pathLong + lenPrependLong, longFilename);
304
             strcpy(pathLong + lenPrependLong, longFilename);
305
-            printListing(child, /*includeLongNames=*/true, path, pathLong);
305
+            printListing(child, true, path, pathLong);
306
           }
306
           }
307
           else
307
           else
308
+            printListing(child, false, path);
309
+        #else
310
+          printListing(child, path);
308
         #endif
311
         #endif
309
-            printListing(child, path);
310
       else {
312
       else {
311
         SERIAL_ECHO_MSG(STR_SD_CANT_OPEN_SUBDIR, dosFilename);
313
         SERIAL_ECHO_MSG(STR_SD_CANT_OPEN_SUBDIR, dosFilename);
312
         return;
314
         return;

Loading…
Cancel
Save