Allow resume from pause with parking enabled (#12893)
Currently, Pause of an SD-Memory card print does not work. This has been verified to resolve the issue by multiple people. I understand more work needs to be done to resolve some of the concerns...
This commit is contained in:
committed by
Roxy-3D
parent
85f149befe
commit
59b18aaeef
@ -114,13 +114,15 @@ void GcodeSuite::M24() {
|
||||
* M25: Pause SD Print
|
||||
*/
|
||||
void GcodeSuite::M25() {
|
||||
|
||||
// Set initial pause flag to prevent more commands from landing in the queue while we try to pause
|
||||
#if ENABLED(SDSUPPORT)
|
||||
if (IS_SD_PRINTING()) { card.pauseSDPrint(); }
|
||||
#endif
|
||||
|
||||
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||
M125();
|
||||
#else
|
||||
#if ENABLED(SDSUPPORT)
|
||||
if (IS_SD_PRINTING()) card.pauseSDPrint();
|
||||
#endif
|
||||
|
||||
print_job_timer.pause();
|
||||
ui.reset_status();
|
||||
|
||||
|
Reference in New Issue
Block a user