|
|
@ -418,22 +418,31 @@ void startOrResumeJob() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void finishSDPrinting() {
|
|
|
|
inline void finishSDPrinting() {
|
|
|
|
|
|
|
|
|
|
|
|
bool did_state = true;
|
|
|
|
bool did_state = true;
|
|
|
|
switch (card.sdprinting_done_state) {
|
|
|
|
switch (card.sdprinting_done_state) {
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_RESUME_CONTINUE // Display "Click to Continue..."
|
|
|
|
case 1:
|
|
|
|
case 1: // 30 min timeout with LCD, 1 min without
|
|
|
|
did_state = print_job_timer.duration() < 60 || queue.enqueue_one_P(PSTR("M31"));
|
|
|
|
did_state = queue.enqueue_one_P(PSTR("M0Q1S" TERN(HAS_LCD_MENU, "1800", "60")));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 2: print_job_timer.stop(); break;
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
did_state = queue.enqueue_one_P(PSTR("M77"));
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
did_state = print_job_timer.duration() < 60 || queue.enqueue_one_P(PSTR("M31"));
|
|
|
|
#if ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
|
|
|
|
|
|
|
ui.set_progress_done();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 4: // Display "Click to Continue..."
|
|
|
|
|
|
|
|
#if HAS_RESUME_CONTINUE // 30 min timeout with LCD, 1 min without
|
|
|
|
|
|
|
|
did_state = queue.enqueue_one_P(PSTR("M0Q1S" TERN(HAS_LCD_MENU, "1800", "60")));
|
|
|
|
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
|
|
|
recovery.purge();
|
|
|
|
recovery.purge();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -442,10 +451,6 @@ void startOrResumeJob() {
|
|
|
|
planner.finish_and_disable();
|
|
|
|
planner.finish_and_disable();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
|
|
|
|
|
|
|
ui.set_progress_done();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
|
|
|
|
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
|
|
|
|
ui.reselect_last_file();
|
|
|
|
ui.reselect_last_file();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|