|
@@ -82,17 +82,17 @@ void GcodeSuite::M24() {
|
82
|
82
|
*/
|
83
|
83
|
void GcodeSuite::M25() {
|
84
|
84
|
|
85
|
|
- // Set initial pause flag to prevent more commands from landing in the queue while we try to pause
|
86
|
|
- #if ENABLED(SDSUPPORT)
|
87
|
|
- if (IS_SD_PRINTING()) card.pauseSDPrint();
|
88
|
|
- #endif
|
89
|
|
-
|
90
|
85
|
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
91
|
86
|
|
92
|
87
|
M125();
|
93
|
88
|
|
94
|
89
|
#else
|
95
|
90
|
|
|
91
|
+ // Set initial pause flag to prevent more commands from landing in the queue while we try to pause
|
|
92
|
+ #if ENABLED(SDSUPPORT)
|
|
93
|
+ if (IS_SD_PRINTING()) card.pauseSDPrint();
|
|
94
|
+ #endif
|
|
95
|
+
|
96
|
96
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
97
|
97
|
if (recovery.enabled) recovery.save(true);
|
98
|
98
|
#endif
|