1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

🐛 Followup to M20 L

- Fix `printListing` after #22271
This commit is contained in:
Scott Lahteine 2021-07-06 22:46:05 -05:00
parent a90b864a3b
commit 504c569f9c

View File

@ -302,11 +302,13 @@ void CardReader::printListing(
pathLong[lenPrependLong - 1] = '/';
}
strcpy(pathLong + lenPrependLong, longFilename);
printListing(child, /*includeLongNames=*/true, path, pathLong);
printListing(child, true, path, pathLong);
}
else
printListing(child, false, path);
#else
printListing(child, path);
#endif
printListing(child, path);
else {
SERIAL_ECHO_MSG(STR_SD_CANT_OPEN_SUBDIR, dosFilename);
return;