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,11 +302,13 @@ void CardReader::printListing(
302 302
               pathLong[lenPrependLong - 1] = '/';
303 303
             }
304 304
             strcpy(pathLong + lenPrependLong, longFilename);
305
-            printListing(child, /*includeLongNames=*/true, path, pathLong);
305
+            printListing(child, true, path, pathLong);
306 306
           }
307 307
           else
308
+            printListing(child, false, path);
309
+        #else
310
+          printListing(child, path);
308 311
         #endif
309
-            printListing(child, path);
310 312
       else {
311 313
         SERIAL_ECHO_MSG(STR_SD_CANT_OPEN_SUBDIR, dosFilename);
312 314
         return;

Loading…
Cancel
Save