|
@@ -28,10 +28,8 @@
|
28
|
28
|
#include "../../parser.h"
|
29
|
29
|
#include "../../../feature/pause.h"
|
30
|
30
|
#include "../../../module/motion.h"
|
31
|
|
-
|
32
|
|
-#if DISABLED(SDSUPPORT)
|
33
|
|
- #include "../../../module/printcounter.h"
|
34
|
|
-#endif
|
|
31
|
+#include "../../../sd/cardreader.h"
|
|
32
|
+#include "../../../module/printcounter.h"
|
35
|
33
|
|
36
|
34
|
/**
|
37
|
35
|
* M125: Store current position and move to filament change position.
|
|
@@ -70,21 +68,14 @@ void GcodeSuite::M125() {
|
70
|
68
|
park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
|
71
|
69
|
#endif
|
72
|
70
|
|
73
|
|
- #if DISABLED(SDSUPPORT)
|
74
|
|
- const bool job_running = print_job_timer.isRunning();
|
75
|
|
- #endif
|
76
|
|
-
|
77
|
|
- if (pause_print(retract, park_point)) {
|
78
|
|
- #if DISABLED(SDSUPPORT)
|
79
|
|
- // Wait for lcd click or M108
|
80
|
|
- wait_for_filament_reload();
|
|
71
|
+ const bool job_running = print_job_timer.isRunning();
|
81
|
72
|
|
82
|
|
- // Return to print position and continue
|
83
|
|
- resume_print();
|
84
|
|
-
|
85
|
|
- if (job_running) print_job_timer.start();
|
86
|
|
- #endif
|
|
73
|
+ if (pause_print(retract, park_point) && !IS_SD_PRINTING()) {
|
|
74
|
+ wait_for_filament_reload(); // Wait for lcd click or M108
|
|
75
|
+ resume_print(); // Return to print position and continue
|
87
|
76
|
}
|
|
77
|
+
|
|
78
|
+ if (job_running) print_job_timer.start();
|
88
|
79
|
}
|
89
|
80
|
|
90
|
81
|
#endif // PARK_HEAD_ON_PAUSE
|