ExtUI parity with SPI LCDs (#14172)

This commit is contained in:
InsanityAutomation
2019-05-30 17:24:13 -04:00
committed by Scott Lahteine
parent 07021c85c8
commit f889cc6ea6
4 changed files with 70 additions and 81 deletions

View File

@ -831,35 +831,15 @@ namespace ExtUI {
}
void pausePrint() {
#if ENABLED(SDSUPPORT)
card.pauseSDPrint();
print_job_timer.pause();
#if ENABLED(PARK_HEAD_ON_PAUSE)
enqueue_and_echo_commands_P(PSTR("M125"));
#endif
ui.set_status_P(PSTR(MSG_PRINT_PAUSED));
#endif
ui.pause_print();
}
void resumePrint() {
#if ENABLED(SDSUPPORT)
ui.set_status_P(PSTR(MSG_FILAMENT_CHANGE_RESUME_1));
#if ENABLED(PARK_HEAD_ON_PAUSE)
wait_for_heatup = wait_for_user = false;
enqueue_and_echo_commands_P(PSTR("M24"));
#else
card.startFileprint();
print_job_timer.start();
#endif
#endif
ui.resume_print();
}
void stopPrint() {
#if ENABLED(SDSUPPORT)
wait_for_heatup = wait_for_user = false;
card.flag.abort_sd_printing = true;
ui.set_status_P(PSTR(MSG_PRINT_ABORTED));
#endif
ui.stop_print();
}
FileList::FileList() { refresh(); }