@ -68,12 +68,13 @@ void GcodeSuite::M125() {
|
||||
park_point.y += (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0);
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
const bool sd_printing = IS_SD_PRINTING();
|
||||
#else
|
||||
constexpr bool sd_printing = false;
|
||||
#endif
|
||||
|
||||
if (pause_print(retract, park_point)) {
|
||||
#if ENABLED(SDSUPPORT)
|
||||
const bool sd_printing = IS_SD_PRINTING() || parser.boolval('S'); // Undocumented parameter
|
||||
#else
|
||||
constexpr bool sd_printing = false;
|
||||
#endif
|
||||
if (!sd_printing) {
|
||||
wait_for_confirmation();
|
||||
resume_print();
|
||||
|
@ -91,17 +91,11 @@ void GcodeSuite::M24() {
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
if (parser.seenval('S')) card.setIndex(parser.value_long());
|
||||
if (parser.seenval('T')) print_job_timer.resume(parser.value_long());
|
||||
#endif
|
||||
|
||||
card.startFileprint();
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
if (parser.seenval('T'))
|
||||
print_job_timer.resume(parser.value_long());
|
||||
else
|
||||
#endif
|
||||
print_job_timer.start();
|
||||
|
||||
print_job_timer.start();
|
||||
ui.reset_status();
|
||||
}
|
||||
|
||||
@ -109,11 +103,12 @@ void GcodeSuite::M24() {
|
||||
* M25: Pause SD Print
|
||||
*/
|
||||
void GcodeSuite::M25() {
|
||||
card.pauseSDPrint();
|
||||
print_job_timer.pause();
|
||||
|
||||
#if ENABLED(PARK_HEAD_ON_PAUSE)
|
||||
enqueue_and_echo_commands_P(PSTR("M125 S")); // To be last in the buffer, must enqueue after pauseSDPrint
|
||||
M125();
|
||||
#else
|
||||
card.pauseSDPrint();
|
||||
print_job_timer.pause();
|
||||
ui.reset_status();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user