Skip to content

Commit

Permalink
Fix: SD pause broken with PARK_HEAD_ON_PAUSE (#17754)
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot authored Apr 28, 2020
1 parent 01c646a commit 919e53a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Marlin/src/gcode/sd/M24_M25.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 919e53a

Please sign in to comment.