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 for SD card pause not working with PARK_HEAD_ON_PAUSE #17754

Conversation

marciot
Copy link
Contributor

@marciot marciot commented Apr 27, 2020

Description

Currently SD card pause is not working with PARK_HEAD_ON_PAUSE. On further investigation, I determined that this was because M25 is pre-maturely pausing the SD print prior to calling M125. M125 then checks whether an SD print is running and takes the wrong code execution path because it finds the print is already paused,

This PR modified the code to pass control directly to M125 when PARK_HEAD_ON_PAUSE is enabled.

Benefits

Now it is possible to pause a print without having it immediately restart.

@thinkyhead
Copy link
Member

Thanks!

@thinkyhead thinkyhead merged commit 919e53a into MarlinFirmware:bugfix-2.0.x Apr 28, 2020
@spilz87
Copy link

spilz87 commented May 5, 2020

in my case this merge create an issue :
when I pause an SD print, the head park and directly restart the print as paused flag is not set

@thinkyhead
Copy link
Member

Now it is possible to pause a print without having it immediately restart.

the head park and directly restart the print as paused flag is not set

Apparently the correct solution was to make some changes to M125. I will revert this quickie patch and as time allows try to figure out the correct solution.

@thinkyhead
Copy link
Member

@spilz87 — Are you using PARK_HEAD_ON_PAUSE or not?

@spilz87
Copy link

spilz87 commented May 10, 2020

Yes I am

jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
njibhu pushed a commit to njibhu/Marlin that referenced this pull request Aug 24, 2020
@marciot marciot deleted the pr-park-head-on-pause-fix branch December 7, 2020 01:01
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
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.

3 participants