Skip to content
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

Fix PLR file delete bug #13860

Conversation

robbycandra
Copy link
Contributor

@robbycandra robbycandra commented Apr 30, 2019

If we print file from sub folder, 2 things happened.

  1. After printing finished, or we Stop Printing, PLR file delete will fail.
    This is because current code try to delete PLR file at Working Directory.
    This PR just add simple fix by add "/" at the beginning of Filename.

  2. After first resume, marlin will fail on second resume.
    After first resume, Marlin save Filename without Directory.
    This happened because workDirParents is not set.
    Therefore when writing PLR

card.getAbsFilename(info.sd_filename);
will only write Filename Part without Directory.

Problem no 1 is fixed by this PR.
But problem no 2 is not fixed yet.

@robbycandra robbycandra changed the title Fix: PLR is at Root Dir BugFix 2.0.x : PLR file delete failed when print file from subDirectory Apr 30, 2019
@thinkyhead thinkyhead merged commit 79955f0 into MarlinFirmware:bugfix-2.0.x May 5, 2019
@thinkyhead thinkyhead changed the title BugFix 2.0.x : PLR file delete failed when print file from subDirectory Fix PLR file delete bug May 5, 2019
@robbycandra robbycandra deleted the bugfix-2.0.x-PLR_is_in_the_root_dir branch May 5, 2019 15:43
ozgunawesome pushed a commit to ozgunawesome/Marlin that referenced this pull request May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants