Ultimaker / Ultimaker2

BOM and parts for UM2
Other
330 stars 207 forks source link

M20 command cuts file names down to 8.3 format #14

Closed bortek closed 9 years ago

bortek commented 9 years ago

God bless MS-DOS but we do not want it here. :)

If you issues M20 command to list the files on the SD card , the returned list contain names which are cut down the length of 8 characters for filename and 3 characters to file extension. Here is an example

Send: M20 Recv: Begin file list Recv: QUADCO~1.GCO Recv: LAMPSK~1.GCO Recv: GERLIT~1.GCO Recv: End file list Recv: ok

So was in older Windows versions when dir command issues in command prompt truncated long file names.

Is this a bug? Can you fix it so we get the full long names?

daid commented 9 years ago

This is a very old legacy thing. The source of this is in: https://github.com/ErikZalm/Marlin

The whole SD card code works with short filenames. So if you want to start a file, you need to use the short filename.

Long filenames are currently only used in the menu code, not in any other code. And the menus still use the short filenames to start the file then.

In the future, M20 might list the long filenames next to the short filenames. But this does not have high priority for Ultimaker. You might want to request this at the main Marlin repository.

bortek commented 9 years ago

thanks daid. Yes I want this ti be fixed.

Which one did you mean by main Marlin repo?

This one https://github.com/Ultimaker/Marlin/pulls

or this one? https://github.com/ErikZalm/Marlin/issues

daid commented 9 years ago

The ErikZalm one.