Fix Resume from SD Pause

In reference to https://github.com/MarlinFirmware/Marlin/pull/12098#issuecomment-436231690
This commit is contained in:
Scott Lahteine 2018-11-06 20:55:00 -06:00
parent 4f72e041f2
commit 812f6a7dd7

View File

@ -68,14 +68,16 @@ 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
const bool job_running = print_job_timer.isRunning(); const bool job_running = print_job_timer.isRunning(),
sd_printing = IS_SD_PRINTING();
if (pause_print(retract, park_point) && !IS_SD_PRINTING()) { if (pause_print(retract, park_point)) {
wait_for_confirmation(); // Wait for lcd click or M108 if (!sd_printing) {
resume_print(); // Return to print position and continue wait_for_confirmation();
resume_print();
}
if (job_running) print_job_timer.start();
} }
if (job_running) print_job_timer.start();
} }
#endif // PARK_HEAD_ON_PAUSE #endif // PARK_HEAD_ON_PAUSE