|
|
@ -28,10 +28,8 @@
|
|
|
|
#include "../../parser.h"
|
|
|
|
#include "../../parser.h"
|
|
|
|
#include "../../../feature/pause.h"
|
|
|
|
#include "../../../feature/pause.h"
|
|
|
|
#include "../../../module/motion.h"
|
|
|
|
#include "../../../module/motion.h"
|
|
|
|
|
|
|
|
#include "../../../sd/cardreader.h"
|
|
|
|
#if DISABLED(SDSUPPORT)
|
|
|
|
|
|
|
|
#include "../../../module/printcounter.h"
|
|
|
|
#include "../../../module/printcounter.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* M125: Store current position and move to filament change position.
|
|
|
|
* M125: Store current position and move to filament change position.
|
|
|
@ -70,21 +68,14 @@ void GcodeSuite::M125() {
|
|
|
|
park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
|
|
|
|
park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if DISABLED(SDSUPPORT)
|
|
|
|
|
|
|
|
const bool job_running = print_job_timer.isRunning();
|
|
|
|
const bool job_running = print_job_timer.isRunning();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (pause_print(retract, park_point)) {
|
|
|
|
|
|
|
|
#if DISABLED(SDSUPPORT)
|
|
|
|
|
|
|
|
// Wait for lcd click or M108
|
|
|
|
|
|
|
|
wait_for_filament_reload();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Return to print position and continue
|
|
|
|
if (pause_print(retract, park_point) && !IS_SD_PRINTING()) {
|
|
|
|
resume_print();
|
|
|
|
wait_for_filament_reload(); // Wait for lcd click or M108
|
|
|
|
|
|
|
|
resume_print(); // Return to print position and continue
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (job_running) print_job_timer.start();
|
|
|
|
if (job_running) print_job_timer.start();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PARK_HEAD_ON_PAUSE
|
|
|
|
#endif // PARK_HEAD_ON_PAUSE
|
|
|
|