-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] M33 for certain files names return ??? #19497
Comments
Please attach your Marlin configuration files, as requested by the issue template. Marlin behavior is extremely configurable, and it is very difficult to debug any issue without knowing how the firmware is configured. Try enabling |
Attached. |
can you zip up a example file that doesn't list (you can delete all gcode in the file, shouldn't make any difference ) So it effectively just a filename. |
Yes, thx. Attached (included gcode). |
I saw a similar issue when working with the asset loader for LVGL UI. What I found is that some files are saved in the SD without the attribute Marlin/src/sd/SdFatStructs.h:579
static inline uint8_t DIR_IS_LONG_NAME(const dir_t* dir) {
return (dir->attributes & DIR_ATT_LONG_NAME_MASK) == DIR_ATT_LONG_NAME;
}
... checked here:
Marlin/src/sd/SdBaseFile.cpp:1099
// Fill the long filename if we have a long filename entry.
// Long filename entries are stored before the short filename.
if (longFilename && DIR_IS_LONG_NAME(dir)) { I didn't go deep looking to see if the attr is really missing or if is marlin doing a bad reading. In my case, all files fit in the 8.3 scheme, so I just did a fallback to the dosFileName when longFilename[0] == 0:
We call apply the same fallback to the M33. I know it don't fix the problem, but I think it is better than The origin of the problem could be the SD format too. @chilman408 Did you try with different SD cards? Maybe re-formatting it with FAT 16 or FAT 32... |
Found!! hahah. Confirmed and fixed: #19515 |
I see thank you |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
When I issue the M33 command on certain files to get the long file name, I'm getting a ??? in return. This is specifically for files that I have sliced on my Windows 10 PC. Other gcode files with long names that I downloaded off the internet would return the correct file name with M33. I can't figure out what is going on. I'm not using any special characters in my file-names, just plain old English.
My Configurations
Required: Please include a ZIP file containing your
Configuration.h
andConfiguration_adv.h
files.Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Additional Information
The text was updated successfully, but these errors were encountered: