Enable 'M20 L' with LONG_FILENAME_HOST_SUPPORT (#22271)

This commit is contained in:
Mihai
2021-07-07 07:10:35 +03:00
committed by GitHub
parent 82193b0923
commit 094caadf94
3 changed files with 68 additions and 35 deletions

View File

@@ -33,7 +33,7 @@
void GcodeSuite::M20() {
if (card.flag.mounted) {
SERIAL_ECHOLNPGM(STR_BEGIN_FILE_LIST);
card.ls();
card.ls(TERN_(LONG_FILENAME_HOST_SUPPORT, parser.boolval('L')));
SERIAL_ECHOLNPGM(STR_END_FILE_LIST);
}
else