Fix: SD pause broken with PARK_HEAD_ON_PAUSE (#17754)
This commit is contained in:
parent
01c646a892
commit
919e53a5d4
@ -82,17 +82,17 @@ void GcodeSuite::M24() {
|
|||||||
*/
|
*/
|
||||||
void GcodeSuite::M25() {
|
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)
|
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||||
|
|
||||||
M125();
|
M125();
|
||||||
|
|
||||||
#else
|
#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 ENABLED(POWER_LOSS_RECOVERY)
|
||||||
if (recovery.enabled) recovery.save(true);
|
if (recovery.enabled) recovery.save(true);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user