Skip to content
Snippets Groups Projects
Unverified Commit 919e53a5 authored by Marcio T's avatar Marcio T Committed by GitHub
Browse files

Fix: SD pause broken with PARK_HEAD_ON_PAUSE (#17754)

parent 01c646a8
No related branches found
No related tags found
No related merge requests found
......@@ -82,17 +82,17 @@ void GcodeSuite::M24() {
*/
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
// 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(POWER_LOSS_RECOVERY)
if (recovery.enabled) recovery.save(true);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment